Mercurial > prosody-hg
diff net/server_epoll.lua @ 9477:0738f5276e0a
net.server_epoll: Assert successful creation of util.poll handle
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 11 Oct 2018 18:53:15 +0200 |
| parents | 619ba78709a5 |
| children | 183ff7a8051b |
line wrap: on
line diff
--- a/net/server_epoll.lua Thu Oct 11 18:52:12 2018 +0200 +++ b/net/server_epoll.lua Thu Oct 11 18:53:15 2018 +0200 @@ -25,7 +25,7 @@ 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
