diff options
| -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;
}
|
