aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/server_epoll.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/server_epoll.lua b/net/server_epoll.lua
index 7a62b03c..0f340560 100644
--- a/net/server_epoll.lua
+++ b/net/server_epoll.lua
@@ -472,7 +472,7 @@ local function wrapsocket(client, server, pattern, listeners, tls) -- luasocket
server = server;
created = gettime();
listeners = listeners;
- _pattern = pattern or server._pattern;
+ _pattern = pattern or (server and server._pattern);
writebuffer = {};
tls = tls;
}, interface_mt);