diff --git a/trantor/net/EventLoop.cc b/trantor/net/EventLoop.cc index 214c9b4c..8db1090a 100644 --- a/trantor/net/EventLoop.cc +++ b/trantor/net/EventLoop.cc @@ -138,7 +138,6 @@ EventLoop::~EventLoop() #endif } - t_loopInThisThread = nullptr; #ifdef __linux__ close(wakeupFd_); #elif defined _WIN32 @@ -256,7 +255,7 @@ void EventLoop::loop() { f(); } - + t_loopInThisThread = nullptr; // Throw the exception from the end if (loopException) {