fixed a dumb bug in the KittenOS net lib

This commit is contained in:
Izaya 2018-04-18 01:59:13 +10:00
parent f3fc4b3504
commit b25311bfed
1 changed files with 1 additions and 1 deletions

View File

@ -91,7 +91,7 @@ local function socket(addr,port,sclose) -- todo, add remote closing of sockets
conn.write = cwrite
conn.read = cread
conn.state = "open"
local function listener(_,t,f,p,d)
local function listener(t,f,p,d)
if f == conn.addr and p == conn.port then
if d == sclose then
conn:close()