diff options
author | Kim Alvefur <zash@zash.se> | 2017-01-05 06:21:31 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-01-05 06:21:31 +0100 |
commit | d58c574d4d4c89b2a056f10d99973a19cde34ec2 (patch) | |
tree | df1b4f86508f3d39e4c17f6b1d8f979139507703 | |
parent | 311628729775e2f194b7b92713e1220556585b06 (diff) | |
download | prosody-d58c574d4d4c89b2a056f10d99973a19cde34ec2.tar.gz prosody-d58c574d4d4c89b2a056f10d99973a19cde34ec2.zip |
net.server_epoll: Fix traceback if wrapclient called without a pattern or parent server
-rw-r--r-- | net/server_epoll.lua | 2 |
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); |