mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-22 02:53:09 +00:00
Add assert
This commit is contained in:
@@ -417,6 +417,7 @@ function socket.listen(host, port, backlog)
|
||||
connected = false,
|
||||
listen = true,
|
||||
}
|
||||
assert(socket_pool[id] == nil)
|
||||
socket_pool[id] = s
|
||||
suspend(s)
|
||||
return id, s.addr, s.port
|
||||
|
||||
Reference in New Issue
Block a user