Comparison

net/server_event.lua @ 7223:f911f929ca6c

net.server_event: Return true from conn:resume() to indicate success
author Kim Alvefur <zash@zash.se>
date Wed, 02 Mar 2016 16:30:46 +0100
parent 7222:168d03dd09c7
child 7224:07a4c807a94a
child 7384:65abd9d7bf88
comparison
equal deleted inserted replaced
7222:168d03dd09c7 7223:f911f929ca6c
289 289
290 function interface_mt:resume() 290 function interface_mt:resume()
291 self:_lock(self.nointerface, false, self.nowriting); 291 self:_lock(self.nointerface, false, self.nowriting);
292 if self.readcallback and not self.eventread then 292 if self.readcallback and not self.eventread then
293 self.eventread = addevent( base, self.conn, EV_READ, self.readcallback, cfg.READ_TIMEOUT ); -- register callback 293 self.eventread = addevent( base, self.conn, EV_READ, self.readcallback, cfg.READ_TIMEOUT ); -- register callback
294 return true;
294 end 295 end
295 end 296 end
296 297
297 function interface_mt:counter(c) 298 function interface_mt:counter(c)
298 if c then 299 if c then