diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-06 16:43:01 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-06 16:43:01 +0000 |
| commit | 59602b67d0637817a156b7bd0fc05f96fe41dee5 (patch) | |
| tree | 3214f9f260796cf673c8bc69b069fd63b8a0889c /src/lib/server.cc | |
| parent | 4c7416beb0efbf74868f756ddf8013f93c5841dc (diff) | |
Various bits of server tidying up.
Diffstat (limited to 'src/lib/server.cc')
| -rw-r--r-- | src/lib/server.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc index bad7ad893..2930e3c4b 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -209,7 +209,7 @@ Server::run (int num_threads) { _log->log (String::compose ("Server starting with %1 threads", num_threads)); if (_verbose) { - cout << "DCP-o-matic server started with " << num_threads << " threads.\n"; + cout << "DCP-o-matic server starting with " << num_threads << " threads.\n"; } for (int i = 0; i < num_threads; ++i) { @@ -243,6 +243,7 @@ Server::run (int num_threads) void Server::broadcast_thread () +try { boost::asio::io_service io_service; @@ -261,6 +262,10 @@ Server::broadcast_thread () io_service.run (); } +catch (...) +{ + store_current (); +} void Server::broadcast_received () |
