From 8e7d34b4716392f9d9a338e755027cff0a8f3161 Mon Sep 17 00:00:00 2001 From: aunsane Date: Wed, 17 Jan 2018 21:35:32 +0300 Subject: Tox: fixed crash on password deletion #1101 --- protocols/Tox/src/tox_proto.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'protocols/Tox/src/tox_proto.cpp') diff --git a/protocols/Tox/src/tox_proto.cpp b/protocols/Tox/src/tox_proto.cpp index 237fee5be0..7711d1e62a 100644 --- a/protocols/Tox/src/tox_proto.cpp +++ b/protocols/Tox/src/tox_proto.cpp @@ -153,6 +153,9 @@ int CToxProto::SetStatus(int iNewStatus) m_iStatus = m_iDesiredStatus = ID_STATUS_OFFLINE; ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); + + UpdateStatusMenu(NULL, NULL); + return 0; } @@ -163,8 +166,9 @@ int CToxProto::SetStatus(int iNewStatus) if (old_status == ID_STATUS_OFFLINE && !IsOnline()) { isTerminated = false; m_iStatus = ID_STATUS_CONNECTING; - hPollingThread = ForkThreadEx(&CToxProto::PollingThread, nullptr, nullptr); ProtoBroadcastAck(NULL, ACKTYPE_STATUS, ACKRESULT_SUCCESS, (HANDLE)old_status, m_iStatus); + + hPollingThread = ForkThreadEx(&CToxProto::PollingThread, nullptr, nullptr); return 0; } -- cgit v1.2.3