aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-01-05 06:21:31 +0100
committerKim Alvefur <zash@zash.se>2017-01-05 06:21:31 +0100
commit597ab0d9f3fc2202f9362140308537e38fce4771 (patch)
tree0b109d27f0825ce4f2960461abc6fece91a6f728 /net
parentd187b53d545b2bdaaf49176b7a8724d06cc6fbd5 (diff)
downloadprosody-im-server-597ab0d9f3fc2202f9362140308537e38fce4771.tar
prosody-im-server-597ab0d9f3fc2202f9362140308537e38fce4771.zip
net.server_epoll: Fix traceback if wrapclient called without a pattern or parent server
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);