diff options
author | George Hazan <ghazan@miranda.im> | 2022-02-08 14:54:39 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-02-08 14:54:39 +0300 |
commit | 12d95ea38599485662ec3f8541b14641c0254fb3 (patch) | |
tree | 0ba353aac9011b7fd314138039fe1c115298b489 /protocols/JabberG/src/jabber_file.cpp | |
parent | dd0c36ddb76469825c06f51a647dea64a85f7af5 (diff) |
fixes #3022 (Jabber file transfers don't report failure)
Diffstat (limited to 'protocols/JabberG/src/jabber_file.cpp')
-rw-r--r-- | protocols/JabberG/src/jabber_file.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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);
|