diff options
author | George Hazan <ghazan@miranda.im> | 2018-12-09 20:21:04 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-12-09 20:21:04 +0300 |
commit | c5496ff12feabcc0fa76032c6c7fde6d9c74dcc6 (patch) | |
tree | 7a333d085aa9eaa3918256d6bd231c16b86e80f2 /protocols/Tox/src/tox_connection.cpp | |
parent | 349ce10960c26cce8c40d4184f1256512351a419 (diff) |
hopefully fixes #1610 (Caught a crash (Tox?))
Diffstat (limited to 'protocols/Tox/src/tox_connection.cpp')
-rw-r--r-- | protocols/Tox/src/tox_connection.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/protocols/Tox/src/tox_connection.cpp b/protocols/Tox/src/tox_connection.cpp index a175126a9a..fef16834c8 100644 --- a/protocols/Tox/src/tox_connection.cpp +++ b/protocols/Tox/src/tox_connection.cpp @@ -72,8 +72,9 @@ void CToxProto::OnToxCheck(void *arg, BYTE) void CToxProto::OnToxPoll(void *arg, BYTE) { CToxProto *proto = (CToxProto*)arg; + if (proto->m_tox) + tox_iterate(proto->m_tox, arg); - tox_iterate(proto->m_tox, arg); /*uint32_t interval = tox_iteration_interval(proto->m_tox); interval = interval ? interval |