mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-24 14:49:42 -06:00
close modem socket after joining read thread
This commit is contained in:
@ -130,15 +130,15 @@ bool TAPServerConnection::Activate()
|
||||
|
||||
void TAPServerConnection::Deactivate()
|
||||
{
|
||||
if (m_fd >= 0)
|
||||
closesocket(m_fd);
|
||||
m_fd = -1;
|
||||
|
||||
m_read_enabled.Clear();
|
||||
m_read_shutdown.Set();
|
||||
if (m_read_thread.joinable())
|
||||
m_read_thread.join();
|
||||
m_read_shutdown.Clear();
|
||||
|
||||
if (m_fd >= 0)
|
||||
closesocket(m_fd);
|
||||
m_fd = -1;
|
||||
}
|
||||
|
||||
bool TAPServerConnection::IsActivated()
|
||||
|
Reference in New Issue
Block a user