From fda067d696e762609b0a78a9af6b1145597f3ddb Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 11 Oct 2018 18:53:15 +0200 Subject: net.server_epoll: Assert successful creation of util.poll handle --- net/server_epoll.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3