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 | fda067d696e762609b0a78a9af6b1145597f3ddb (patch) | |
tree | 04a9e4412f232050d2d1cf6e8758d4db69326148 | |
parent | 9547e0e66d31ed8b3e3dcec7fb3c6ea96bda7ccc (diff) | |
download | prosody-fda067d696e762609b0a78a9af6b1145597f3ddb.tar.gz prosody-fda067d696e762609b0a78a9af6b1145597f3ddb.zip |
net.server_epoll: Assert successful creation of util.poll handle
-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 |