Skip to content

Commit

Permalink
added trim functino for int conversion
Browse files Browse the repository at this point in the history
  • Loading branch information
noMoreCLI committed Dec 10, 2024
1 parent d833248 commit cb4fc20
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ protected String processCall(String call, boolean catchExceptions, int remoteTim
throws IOException {
logger.info("Processing call: {}", call);
if (call.startsWith("sleep")) {
int timeout = Integer.parseInt(call.split(",")[1]);
int timeout = Integer.parseInt(call.split(",")[1].trim());
try {
Thread.sleep(timeout);
} catch (InterruptedException e) {
Expand Down

0 comments on commit cb4fc20

Please sign in to comment.