diff options
author | ElzorFox <elzorfox@ya.ru> | 2019-09-02 11:45:42 +0500 |
---|---|---|
committer | ElzorFox <elzorfox@ya.ru> | 2019-09-02 11:45:42 +0500 |
commit | 44ee2da9628ed8161d830f55371571bb1b77f5a3 (patch) | |
tree | 92d076d6b9d137129e9d89e040fac8001e407b61 /protocols/VKontakte | |
parent | 9c4bf98e06e556e36539733b457ca627709067b0 (diff) |
VKontakte: crachfix on server error == 1 for file sending
Diffstat (limited to 'protocols/VKontakte')
-rw-r--r-- | protocols/VKontakte/src/vk_files.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/protocols/VKontakte/src/vk_files.cpp b/protocols/VKontakte/src/vk_files.cpp index adcec0f2b5..daccee6a53 100644 --- a/protocols/VKontakte/src/vk_files.cpp +++ b/protocols/VKontakte/src/vk_files.cpp @@ -144,7 +144,8 @@ void CVkProto::OnReciveUploadServer(NETLIBHTTPREQUEST *reply, AsyncHttpRequest * JSONNode jnRoot;
const JSONNode &jnResponse = CheckJsonResponse(pReq, reply, jnRoot);
if (!jnResponse || pReq->m_iErrorCode) {
- SendFileFiled(fup, pReq->m_iErrorCode);
+ if (!pReq->bNeedsRestart)
+ SendFileFiled(fup, pReq->m_iErrorCode);
return;
}
@@ -315,7 +316,8 @@ void CVkProto::OnReciveUploadFile(NETLIBHTTPREQUEST *reply, AsyncHttpRequest *pR JSONNode jnRoot;
const JSONNode &jnResponse = CheckJsonResponse(pReq, reply, jnRoot);
if (!jnResponse || pReq->m_iErrorCode) {
- SendFileFiled(fup, pReq->m_iErrorCode);
+ if (!pReq->bNeedsRestart)
+ SendFileFiled(fup, pReq->m_iErrorCode);
return;
}
|