1
0
mirror of https://github.com/ShadowKatStudios/OC-Minitel.git synced 2024-11-23 10:38:05 +11:00

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

View File

@ -112,7 +112,7 @@ function net.open(to,port)
local st = computer.uptime()+net.streamdelay local st = computer.uptime()+net.streamdelay
local est = false local est = false
while true do 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 to == from and rport == port then
if tonumber(data) then if tonumber(data) then
est = true est = true