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 | a79da674d1e5ff1b7a2926294c3d141fabbad294 (patch) | |
tree | d8eca2adc76e5ad66f15e35eeaeff14df934c2cb | |
parent | afd25ad763e144ae93209b2aab9540b9ec45abcb (diff) | |
download | prosody-a79da674d1e5ff1b7a2926294c3d141fabbad294.tar.gz prosody-a79da674d1e5ff1b7a2926294c3d141fabbad294.zip |
net.server_event: Destroy interfaces immediately, fixes reopening of servers.
-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 |