summaryrefslogtreecommitdiff
path: root/src/lib/server.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/server.cc')
-rw-r--r--src/lib/server.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc
index c1db1e6ac..260f2e469 100644
--- a/src/lib/server.cc
+++ b/src/lib/server.cc
@@ -89,7 +89,9 @@ Server::~Server ()
_io_service.stop ();
_broadcast.io_service.stop ();
- _broadcast.thread->join ();
+ if (_broadcast.thread) {
+ _broadcast.thread->join ();
+ }
}
/** @param after_read Filled in with gettimeofday() after reading the input from the network.