made minitel.open time out properly, for #30

This commit is contained in:
Izaya 2020-04-11 12:28:26 +10:00
parent ddf3a9b17d
commit 0637da63b4
1 changed files with 1 additions and 1 deletions

View File

@ -112,7 +112,7 @@ function net.open(to,port)
local st = computer.uptime()+net.streamdelay
local est = false
while true do
_,from,rport,data = event.pull("net_msg")
_,from,rport,data = event.pull(net.streamdelay, "net_msg")
if to == from and rport == port then
if tonumber(data) then
est = true