LaunchAPPL: delay 0.1 seconds so that server has time to reopen the port

This commit is contained in:
Wolfgang Thaller 2019-01-09 00:33:04 +01:00
parent 29d6d2d230
commit 09110dbff4
1 changed files with 2 additions and 0 deletions

View File

@ -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)