summaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-18 23:22:41 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-21 10:20:00 +0000
commita64b21997b26548872a91141b111c5d63262b774 (patch)
tree40892fa45d5cf585f2e9c3b459a8a49b99b42e22 /src/tools
parent2a8b62dca9c170cd9b56c67dc5364970342f74ac (diff)
Try more times to connect to batch converter.
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/dcpomatic.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/tools/dcpomatic.cc b/src/tools/dcpomatic.cc
index a9daf5f04..3162dee98 100644
--- a/src/tools/dcpomatic.cc
+++ b/src/tools/dcpomatic.cc
@@ -497,10 +497,9 @@ private:
/* i = 0; try to connect via socket
i = 1; try again, and then try to start the batch converter
- i = 2; try again.
- i = 3; try again.
+ i = 2 onwards; try again.
*/
- for (int i = 0; i < 4; ++i) {
+ for (int i = 0; i < 8; ++i) {
try {
boost::asio::io_service io_service;
boost::asio::ip::tcp::resolver resolver (io_service);
@@ -516,7 +515,7 @@ private:
socket.read (ok, 3);
return;
} catch (exception& e) {
- std::cout << "start batch failed: " << e.what() << "\n";
+
}
if (i == 1) {