diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-07-01 13:59:50 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-07-01 13:59:50 +0100 |
| commit | 05654d0e1799746a9df3ccab040c92e0ed825cac (patch) | |
| tree | 59f89a17bf9b9fd9e1056a55653724b616703a2c /src/lib/server.cc | |
| parent | b63118dafbd7224e9196a40895d9c7cb96504717 (diff) | |
| parent | 6bc83f72f12c8513a1e9e9b6fd880697a73f968f (diff) | |
Merge master.
Diffstat (limited to 'src/lib/server.cc')
| -rw-r--r-- | src/lib/server.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/server.cc b/src/lib/server.cc index fe792e307..9d1925de1 100644 --- a/src/lib/server.cc +++ b/src/lib/server.cc @@ -136,7 +136,7 @@ Server::process (shared_ptr<Socket> socket, struct timeval& after_read, struct t void Server::worker_thread () { - while (1) { + while (true) { boost::mutex::scoped_lock lock (_worker_mutex); while (_queue.empty () && !_terminate) { _empty_condition.wait (lock); |
