diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2020-03-18 20:51:33 +0000 |
---|---|---|
committer | Frediano Ziglio <freddy77@gmail.com> | 2020-04-24 10:33:34 +0100 |
commit | ab3353b5799d14431d08aa620a84cd1cc81ec56c (patch) | |
tree | 72987d2c587fa33aae5b568128f21ad1c6908aee /vdagent | |
parent | a914784295b2ffed8ce002fab37fd158fdfba28d (diff) |
vdagent: Return better error if locked
Use specific VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED error.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'vdagent')
-rw-r--r-- | vdagent/vdagent.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vdagent/vdagent.cpp b/vdagent/vdagent.cpp index 36fc167..b1f7edf 100644 --- a/vdagent/vdagent.cpp +++ b/vdagent/vdagent.cpp @@ -1345,7 +1345,7 @@ void VDAgent::dispatch_message(VDAgentMessage* msg, uint32_t port) if (_session_is_locked) { VDAgentFileXferStartMessage *s = (VDAgentFileXferStartMessage *)msg->data; status.common.id = s->id; - status.common.result = VD_AGENT_FILE_XFER_STATUS_ERROR; + status.common.result = VD_AGENT_FILE_XFER_STATUS_SESSION_LOCKED; vd_printf("Fail to start file-xfer %u due: Locked session", status.common.id); agent_prepare_filexfer_status(&status, &status_size, _client_caps.data(), _client_caps.size()); |