Try more times to connect to batch converter.
authorCarl Hetherington <cth@carlh.net>
Fri, 18 Dec 2015 23:22:41 +0000 (23:22 +0000)
committerCarl Hetherington <cth@carlh.net>
Mon, 21 Dec 2015 10:20:00 +0000 (10:20 +0000)
src/tools/dcpomatic.cc

index a9daf5f04bb69eb0b3fe7302fd3e36221a81a8e2..3162dee985e212849e841349aad90a211e14b404 100644 (file)
@@ -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) {