aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-07 19:25:16 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-07 19:25:16 +0000
commitc990578ae026a01bb9c1b0b1b0080d5a5ca952fb (patch)
tree98ffc70dff3a3433ebdb8fbc3ad6f07b5f89cf32
parent0e534e4ba5b6f86f3a2d91d1450875d1b3179409 (diff)
downloadprosody-c990578ae026a01bb9c1b0b1b0080d5a5ca952fb.tar.gz
prosody-c990578ae026a01bb9c1b0b1b0080d5a5ca952fb.zip
net.server_event: Fix closeallservers() to work correctly after the giant refactorizification
-rw-r--r--net/server_event.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 6ef0f5b1..cefac3c6 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -760,8 +760,8 @@ end )( )
local closeallservers = function( arg )
for _, item in ipairs( interfacelist( ) ) do
- if item "type" == "server" then
- item( "close", arg )
+ if item.type == "server" then
+ item:close( arg )
end
end
end