Changeset

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 9476:f3935aa4cc7e
children 9478:bd178ed0459b
files net/server_epoll.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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