summaryrefslogtreecommitdiff
path: root/thread.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'thread.cpp')
-rw-r--r--thread.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/thread.cpp b/thread.cpp
index 9b0b436..c0abfb7 100644
--- a/thread.cpp
+++ b/thread.cpp
@@ -49,6 +49,7 @@ void ServerThread::Action()
int argc = sizeof( argv ) / sizeof( argv[0] );
m_server.reset( new Tntnet( argc, argv ) );
m_server->run();
+ m_server.reset( 0 );
} catch ( exception const& ex ) {
// XXX move initial error handling to live.cpp
esyslog( "ERROR: live httpd server crashed: %s", ex.what() );