From a9fc57756099e7bc766ed84d380fc711a8c8d872 Mon Sep 17 00:00:00 2001 From: David Feng Date: Thu, 17 Dec 2015 15:53:39 +0800 Subject: [PATCH] fix typo fix a little mistake --- lualib/socket.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/socket.lua b/lualib/socket.lua index b2f2ac15..5ea222e0 100644 --- a/lualib/socket.lua +++ b/lualib/socket.lua @@ -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