mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: Potential hang when closing UDP Servers after a client connected
This commit is contained in:
@@ -28,7 +28,6 @@ namespace hex {
|
||||
|
||||
void UDPServer::stop() {
|
||||
m_running = false;
|
||||
if (m_thread.joinable()) m_thread.join();
|
||||
|
||||
if (m_socketFd >= 0) {
|
||||
#if defined(OS_WINDOWS)
|
||||
@@ -37,6 +36,8 @@ namespace hex {
|
||||
::close(m_socketFd);
|
||||
#endif
|
||||
}
|
||||
|
||||
if (m_thread.joinable()) m_thread.join();
|
||||
}
|
||||
|
||||
void UDPServer::run() {
|
||||
|
||||
Reference in New Issue
Block a user