From 12d95ea38599485662ec3f8541b14641c0254fb3 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 8 Feb 2022 14:54:39 +0300 Subject: fixes #3022 (Jabber file transfers don't report failure) --- protocols/JabberG/src/jabber_file.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_file.cpp b/protocols/JabberG/src/jabber_file.cpp index 5cbc2a8420..f7d0cd0aac 100644 --- a/protocols/JabberG/src/jabber_file.cpp +++ b/protocols/JabberG/src/jabber_file.cpp @@ -508,8 +508,10 @@ int filetransfer::create() fileId = _wopen(std.szCurrentFile.w, _O_BINARY | _O_CREAT | _O_TRUNC | _O_WRONLY, _S_IREAD | _S_IWRITE); } - if (fileId == -1) + if (fileId == -1) { + ppro->ProtoBroadcastAck(std.hContact, ACKTYPE_FILE, ACKRESULT_FAILED, this); ppro->debugLogW(L"Cannot create file '%s' during a file transfer", filefull); + } else if (std.currentFileSize != 0) _chsize(fileId, std.currentFileSize); -- cgit v1.2.3