Gracefully handle debugger accept thread already running

This commit is contained in:
Dr. Chat
2015-07-05 13:31:51 -05:00
parent fbfdfc8914
commit 6bb5b002e0
2 changed files with 64 additions and 59 deletions

View File

@@ -111,6 +111,7 @@ class Debugger {
Emulator* emulator_;
uintptr_t listen_socket_;
bool accept_thread_running_;
std::thread accept_thread_;
xe::threading::Fence accept_fence_;
uintptr_t client_socket_;