diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-11 18:53:15 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-11 18:53:15 +0200 |
commit | 25fac9a74b12cf60842f4f043a30f98c3e2913d3 (patch) | |
tree | 04a9e4412f232050d2d1cf6e8758d4db69326148 /net | |
parent | ea072c9adba2359d834a85563a7d57479fd454de (diff) | |
download | prosody-25fac9a74b12cf60842f4f043a30f98c3e2913d3.tar.gz prosody-25fac9a74b12cf60842f4f043a30f98c3e2913d3.zip |
net.server_epoll: Assert successful creation of util.poll handle
Diffstat (limited to 'net')
-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 4a3c4506..7a9bd7a3 100644 --- a/net/server_epoll.lua +++ b/net/server_epoll.lua @@ -25,7 +25,7 @@ local inet = require "util.net"; local inet_pton = inet.pton; local _SOCKETINVALID = socket._SOCKETINVALID or -1; -local poll = require "util.poll".new(); +local poll = assert(require "util.poll".new()); local _ENV = nil; -- luacheck: std none |