From 09110dbff4def814420c1a3e11affa696c09edf6 Mon Sep 17 00:00:00 2001 From: Wolfgang Thaller Date: Wed, 9 Jan 2019 00:33:04 +0100 Subject: [PATCH] LaunchAPPL: delay 0.1 seconds so that server has time to reopen the port --- LaunchAPPL/Client/TCP.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/LaunchAPPL/Client/TCP.cc b/LaunchAPPL/Client/TCP.cc index 5ad5e025bd..dd731b0c12 100644 --- a/LaunchAPPL/Client/TCP.cc +++ b/LaunchAPPL/Client/TCP.cc @@ -65,6 +65,8 @@ TCPStream::TCPStream(po::variables_map &options) TCPStream::~TCPStream() { close(fd); + // a little hack: delay 0.1 seconds so that LaunchAPPLServer has time to reopen the port + usleep(100000); } void TCPStream::write(const void* p, size_t n)