mirror of
https://git.suyu.dev/suyu/suyu.git
synced 2024-11-22 23:02:47 +01:00
Merge pull request #9411 from Saalvage/fix/unlock-mutex
Correctly unlock mutex before its destruction
This commit is contained in:
commit
66c4331de5
1 changed files with 0 additions and 3 deletions
|
@ -163,9 +163,6 @@ ServiceThread::Impl::~Impl() {
|
||||||
m_wakeup_event->Signal();
|
m_wakeup_event->Signal();
|
||||||
m_host_thread.join();
|
m_host_thread.join();
|
||||||
|
|
||||||
// Lock mutex.
|
|
||||||
m_session_mutex.lock();
|
|
||||||
|
|
||||||
// Close all remaining sessions.
|
// Close all remaining sessions.
|
||||||
for (const auto& [server_session, manager] : m_sessions) {
|
for (const auto& [server_session, manager] : m_sessions) {
|
||||||
server_session->Close();
|
server_session->Close();
|
||||||
|
|
Loading…
Reference in a new issue