diff options
author | aunsane <aunsane@gmail.com> | 2017-03-21 22:53:53 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-03-21 23:17:16 +0300 |
commit | 509729f2a8f9712c1d24b0b59ee9e315bfc908e0 (patch) | |
tree | 948ac7fec7631205e9bc9140d37c2d6b712c77f3 /protocols | |
parent | 2dda3af35cf70b8ed614f88455a30090e5befc2f (diff) |
Tox: fixed #772
Diffstat (limited to 'protocols')
-rw-r--r-- | protocols/Tox/src/tox_bootstrap.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_bootstrap.cpp b/protocols/Tox/src/tox_bootstrap.cpp index 167cad3a14..cc0801da32 100644 --- a/protocols/Tox/src/tox_bootstrap.cpp +++ b/protocols/Tox/src/tox_bootstrap.cpp @@ -136,7 +136,7 @@ void CToxProto::UpdateNodes() { HttpRequest request(REQUEST_GET, "https://nodes.tox.chat/json"); NLHR_PTR response(request.Send(m_hNetlibUser)); - if (response->resultCode != HTTP_CODE_OK || !response->pData) + if (!response || response->resultCode != HTTP_CODE_OK || !response->pData) { debugLogA(__FUNCTION__": failed to dowload tox.json"); return; |