Skip to content

Commit

Permalink
Wait a moment before polling COM server
Browse files Browse the repository at this point in the history
- COM connection might fail after starting process on very fast machines
  • Loading branch information
cpoenisch committed Mar 2, 2021
1 parent f21d6fe commit 7f74bc5
Showing 1 changed file with 3 additions and 1 deletion.
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2015-2019 TraceTronic GmbH
* Copyright (c) 2015-2021 TraceTronic GmbH
*
* SPDX-License-Identifier: BSD-3-Clause
*/
Expand Down Expand Up @@ -102,6 +102,8 @@ protected boolean launchProcess(final Launcher launcher, final TaskListener list
logger.logError(String.format("-> Timeout of %d seconds reached! This can also be caused by an "
+ "invalid license.", getTimeout()));
}
// Wait a moment before polling COM server
Thread.sleep(3000L);
} catch (final IOException e) {
logger.logError("-> Command line execution failed: " + e.getMessage());
}
Expand Down

0 comments on commit 7f74bc5

Please sign in to comment.