fix a little mistake
This commit is contained in:
David Feng
2015-12-17 15:53:39 +08:00
parent 4f8427a23f
commit a9fc577560

View File

@@ -253,7 +253,7 @@ function socket.close(id)
s.connected = false
end
close_fd(id) -- clear the buffer (already close fd)
assert(s.lock_set == nil or next(s.lock_set) == nil)
assert(s.lock == nil or next(s.lock) == nil)
socket_pool[id] = nil
end