# HG changeset patch # User Kim Alvefur # Date 1539276795 -7200 # Node ID 0738f5276e0aab23d3fe02ba3dd3a4a4c72661e9 # Parent f3935aa4cc7e7f6fb901b11cfce49e907079ced4 net.server_epoll: Assert successful creation of util.poll handle diff -r f3935aa4cc7e -r 0738f5276e0a net/server_epoll.lua --- 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