Fixes crashes when asyncdispatch.adjustTimeout returns a negative value. (#11231)
This commit is contained in:
parent
2339542832
commit
d0b8724aa2
6 changed files with 22 additions and 7 deletions
|
|
@ -309,6 +309,8 @@ proc selectInto*[T](s: Selector[T], timeout: int,
|
|||
var ptv = addr tv
|
||||
var rset, wset, eset: FdSet
|
||||
|
||||
verifySelectParams(timeout)
|
||||
|
||||
if timeout != -1:
|
||||
when defined(genode):
|
||||
tv.tv_sec = Time(timeout div 1_000)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue