diff options
author | George Hazan <ghazan@miranda.im> | 2019-01-23 13:53:57 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-01-23 13:53:57 +0300 |
commit | 003b1efecbd2b1de05d320255ec869dd200736d0 (patch) | |
tree | 95a4fe25837b4c0a40d2d0a8a52cc88ec60c37a5 /protocols/Tox/src | |
parent | f0e5f631450925938fba4d50e1d6f01d85adc712 (diff) |
fixes #1788 (occasional crash in Tox)
Diffstat (limited to 'protocols/Tox/src')
-rw-r--r-- | protocols/Tox/src/tox_connection.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_connection.cpp b/protocols/Tox/src/tox_connection.cpp index 02ab9e223c..9b7c40f39d 100644 --- a/protocols/Tox/src/tox_connection.cpp +++ b/protocols/Tox/src/tox_connection.cpp @@ -61,6 +61,8 @@ void CToxProto::CheckConnection() void CToxProto::OnToxCheck(void *arg, BYTE) { CToxProto *proto = (CToxProto*)arg; + if (proto->m_tox == nullptr) + return; // int retriesCount = proto->getByte("MaxReconnectRetries", TOX_MAX_RECONNECT_RETRIES); if (proto->m_iStatus < ID_STATUS_ONLINE) |