Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Expect.java
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ public int expect(int timeout, List<Pattern> list) {

long waitTime = endTime - System.currentTimeMillis();
if (restart_timeout_upon_receive)
waitTime = timeout * 1000;
waitTime = (long) (timeout * 1000);
if (waitTime <= 0) {
log.debug("Timeout when expecting " + list);
return RETV_TIMEOUT;
Expand Down