aboutsummaryrefslogtreecommitdiffstats
path: root/net/server_select.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-10-05 15:37:46 +0200
committerKim Alvefur <zash@zash.se>2014-10-05 15:37:46 +0200
commit505ba5222550485aab2d062dc2bf6f7a5bc9b0b0 (patch)
treec419f2d0ba15e1d5364c44a1e2b6f89e99f16f85 /net/server_select.lua
parentf5f64c67636ac8bfc9e1add666229278c689bf0a (diff)
parent3ae8a2ed6ef23c1e7cea54a93b05c624a321cf08 (diff)
downloadprosody-505ba5222550485aab2d062dc2bf6f7a5bc9b0b0.tar.gz
prosody-505ba5222550485aab2d062dc2bf6f7a5bc9b0b0.zip
Merge 0.10->trunk
Diffstat (limited to 'net/server_select.lua')
-rw-r--r--net/server_select.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/server_select.lua b/net/server_select.lua
index b9785678..51449bdf 100644
--- a/net/server_select.lua
+++ b/net/server_select.lua
@@ -888,6 +888,8 @@ loop = function(once) -- this is the main loop of the program
if not(handler.onreadtimeout) or handler:onreadtimeout() ~= true then
handler.disconnect( )( handler, "read timeout" )
handler:close( ) -- forced disconnect?
+ else
+ _readtimes[ handler ] = _currenttime -- reset timer
end
end
end