From 15d1c4c7d318d71b9c06ebced7ed191b7a02a0ec Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 4 Jun 2020 21:50:36 +0300 Subject: fixes #2410 (Problems with (false) offline contacts in skype protocol) --- protocols/SkypeWeb/src/skype_files.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'protocols/SkypeWeb/src/skype_files.cpp') diff --git a/protocols/SkypeWeb/src/skype_files.cpp b/protocols/SkypeWeb/src/skype_files.cpp index 8f0c94eaa7..4bf25eee6a 100644 --- a/protocols/SkypeWeb/src/skype_files.cpp +++ b/protocols/SkypeWeb/src/skype_files.cpp @@ -25,7 +25,7 @@ void CSkypeProto::SendFileThread(void *p) } ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, ACKRESULT_CONNECTING, (HANDLE)fup); - SendRequest(new ASMObjectCreateRequest(this, fup)); + PushRequest(new ASMObjectCreateRequest(this, fup)); } void CSkypeProto::OnASMObjectCreated(NETLIBHTTPREQUEST *response, AsyncHttpRequest *pRequest) @@ -70,7 +70,7 @@ LBL_Error: } fup->size = lBytes; ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, ACKRESULT_INITIALISING, (HANDLE)fup); - SendRequest(new ASMObjectUploadRequest(this, strObjectId.c_str(), pData, lBytes, fup)); + PushRequest(new ASMObjectUploadRequest(this, strObjectId.c_str(), pData, lBytes, fup)); fclose(pFile); } @@ -104,7 +104,7 @@ void CSkypeProto::OnASMObjectUploaded(NETLIBHTTPREQUEST *response, AsyncHttpRequ tinyxml2::XMLPrinter printer(0, true); doc.Print(&printer); - SendRequest(new SendMessageRequest(getId(fup->hContact), time(NULL), printer.CStr(), "RichText/Media_GenericFile")); + PushRequest(new SendMessageRequest(getId(fup->hContact), time(NULL), printer.CStr(), "RichText/Media_GenericFile")); ProtoBroadcastAck(fup->hContact, ACKTYPE_FILE, ACKRESULT_SUCCESS, (HANDLE)fup); delete fup; -- cgit v1.2.3