Software /
code /
prosody
Changeset
2334:4cedfeeaaed4
net.server_event: Fix closeallservers() to work correctly after the giant refactorizification
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 07 Dec 2009 19:25:16 +0000 |
parents | 2333:ed824115becf |
children | 2335:060fb67cefd5 |
files | net/server_event.lua |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/net/server_event.lua Mon Dec 07 18:42:31 2009 +0000 +++ b/net/server_event.lua Mon Dec 07 19:25:16 2009 +0000 @@ -760,8 +760,8 @@ 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