diff options
author | Kim Alvefur <zash@zash.se> | 2012-12-28 14:26:21 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2012-12-28 14:26:21 +0100 |
commit | 966f062f889718a4d6a4b95a64f1c0d5d4b0f170 (patch) | |
tree | d8eca2adc76e5ad66f15e35eeaeff14df934c2cb /net/server_event.lua | |
parent | c703ee5f64394460e973dfb90a789d72ddd0f5e7 (diff) | |
download | prosody-966f062f889718a4d6a4b95a64f1c0d5d4b0f170.tar.gz prosody-966f062f889718a4d6a4b95a64f1c0d5d4b0f170.zip |
net.server_event: Destroy interfaces immediately, fixes reopening of servers.
Diffstat (limited to 'net/server_event.lua')
-rw-r--r-- | net/server_event.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/net/server_event.lua b/net/server_event.lua index 5316866e..e69530ff 100644 --- a/net/server_event.lua +++ b/net/server_event.lua @@ -120,14 +120,8 @@ do self.position = new_position or self.position return self.position; end - function interface_mt:_close() -- regs event to start self:_destroy() - local callback = function( ) - self:_destroy(); - self.eventclose = nil - return -1 - end - self.eventclose = addevent( base, nil, EV_TIMEOUT, callback, 0 ) - return true + function interface_mt:_close() + return self:_destroy(); end function interface_mt:_start_connection(plainssl) -- should be called from addclient |