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)