aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-12-07 18:42:31 +0000
committerMatthew Wild <mwild1@gmail.com>2009-12-07 18:42:31 +0000
commit0e534e4ba5b6f86f3a2d91d1450875d1b3179409 (patch)
treefe18dab00edba8d8e9b4de7b100deae7169b079d /net
parent97680a1c215edb26bcd554fb3f86dc182f64c3fc (diff)
downloadprosody-0e534e4ba5b6f86f3a2d91d1450875d1b3179409.tar.gz
prosody-0e534e4ba5b6f86f3a2d91d1450875d1b3179409.zip
net.server_event: Return "quitting" on loop exit to be compatible with net.server_select, and give Prosody a way to know why the loop broke
Diffstat (limited to 'net')
-rw-r--r--net/server_event.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/server_event.lua b/net/server_event.lua
index 21d6156c..6ef0f5b1 100644
--- a/net/server_event.lua
+++ b/net/server_event.lua
@@ -747,7 +747,8 @@ end
local loop = function( ) -- starts the event loop
- return base:loop( )
+ base:loop( )
+ return "quitting";
end
local newevent = ( function( )