summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-03-31 20:19:35 +0100
committerCarl Hetherington <cth@carlh.net>2014-03-31 20:19:35 +0100
commitf8cf68ca666e016d0e5d3834f7a006f93d803e73 (patch)
treec4c47175c9e5bbac25463a2a8992d15b26ed1041 /src/lib
parente55d6da8817488f7a639130be54bcab152d19b89 (diff)
Very small cleanups.
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/server_finder.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc
index 3d5825ad4..1080d24c4 100644
--- a/src/lib/server_finder.cc
+++ b/src/lib/server_finder.cc
@@ -1,5 +1,5 @@
/*
- Copyright (C) 2013 Carl Hetherington <cth@carlh.net>
+ Copyright (C) 2013-2014 Carl Hetherington <cth@carlh.net>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -62,7 +62,7 @@ try
string const data = DCPOMATIC_HELLO;
- while (1) {
+ while (true) {
if (Config::instance()->use_any_servers ()) {
/* Broadcast to look for servers */
try {
@@ -103,12 +103,11 @@ ServerFinder::listen_thread ()
try
{
while (1) {
- shared_ptr<Socket> sock (new Socket (10));
+ shared_ptr<Socket> sock (new Socket (60));
try {
sock->accept (Config::instance()->server_port_base() + 1);
} catch (std::exception& e) {
- dcpomatic_sleep (60);
continue;
}