Skip to content

Commit 3b0f7ae

Browse files
committed
ATRONIX: Check REB_TIME for timeout parameter
So wait [p 0:0:0.5] will properly pick up the timeout as 0.5 second. Without the change, if the timeout is of type TIME, it's ignored, which makes `wait [p 0:0:0.5]' equivalent to `wait [p]' which waits forever until `p' has events. (cherry picked from commit 2111dae)
1 parent 8ec6e59 commit 3b0f7ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/n-io.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ static REBSER *Read_All_File(char *fname)
329329
DS_RELOAD(ds);
330330
for (val = BLK_HEAD(ports); NOT_END(val); val++) { // find timeout
331331
if (Pending_Port(val)) n++;
332-
if (IS_INTEGER(val) || IS_DECIMAL(val)) break;
332+
if (IS_INTEGER(val) || IS_DECIMAL(val) || IS_TIME(val)) break;
333333
}
334334
if (IS_END(val)) {
335335
if (n == 0) return R_NONE; // has no pending ports!

0 commit comments

Comments
 (0)