Stop timers in destructor.

Fix of crash when changing lang.
This commit is contained in:
David Kocik 2024-06-12 15:44:22 +02:00 committed by Lukas Matena
parent de6f111eb6
commit 31088cc139

View File

@ -182,6 +182,8 @@ UserAccountCommunication::UserAccountCommunication(wxEvtHandler* evt_handler, Ap
UserAccountCommunication::~UserAccountCommunication() UserAccountCommunication::~UserAccountCommunication()
{ {
m_token_timer->Stop();
m_polling_timer->Stop();
if (m_thread.joinable()) { if (m_thread.joinable()) {
// Stop the worker thread, if running. // Stop the worker thread, if running.
{ {