Comparison

net/server_event.lua @ 6860:153a2e49c4f7

server_event: Fix indentation
author Kim Alvefur <zash@zash.se>
date Fri, 25 Sep 2015 17:56:21 +0200
parent 6859:88a997e08b70
child 6861:39789f1669cb
child 7040:bdcea2dd33b8
comparison
equal deleted inserted replaced
6859:88a997e08b70 6860:153a2e49c4f7
389 end 389 end
390 if not self.eventwrite then 390 if not self.eventwrite then
391 self:_lock( true, true, true ) -- lock the interface, to not disturb the handshake 391 self:_lock( true, true, true ) -- lock the interface, to not disturb the handshake
392 self.eventstarthandshake = addevent( base, nil, EV_TIMEOUT, self.startsslcallback, 0 ) -- add event to start handshake 392 self.eventstarthandshake = addevent( base, nil, EV_TIMEOUT, self.startsslcallback, 0 ) -- add event to start handshake
393 else -- wait until writebuffer is empty 393 else -- wait until writebuffer is empty
394 self:_lock( true, true, false ) 394 self:_lock( true, true, false )
395 debug "ssl session delayed until writebuffer is empty..." 395 debug "ssl session delayed until writebuffer is empty..."
396 end 396 end
397 self.starttls = false; 397 self.starttls = false;
398 return true 398 return true
399 end 399 end
400 400
401 function interface_mt:setoption(option, value) 401 function interface_mt:setoption(option, value)
402 if self.conn.setoption then 402 if self.conn.setoption then
403 return self.conn:setoption(option, value); 403 return self.conn:setoption(option, value);