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 | 1620e8c7c7d899207bc8c405aa0dd3d87f3e3c55 (patch) | |
tree | 04a9e4412f232050d2d1cf6e8758d4db69326148 /net/server_epoll.lua | |
parent | da4b07c562946435e51c852be673bf134e7c0dca (diff) | |
download | prosody-1620e8c7c7d899207bc8c405aa0dd3d87f3e3c55.tar.gz prosody-1620e8c7c7d899207bc8c405aa0dd3d87f3e3c55.zip |
net.server_epoll: Assert successful creation of util.poll handle
Diffstat (limited to 'net/server_epoll.lua')
-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 |