Diff

net/server_event.lua @ 2333:ed824115becf

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
author Matthew Wild <mwild1@gmail.com>
date Mon, 07 Dec 2009 18:42:31 +0000
parent 2318:a831de056de3
child 2334:4cedfeeaaed4
line wrap: on
line diff
--- a/net/server_event.lua	Mon Dec 07 18:38:35 2009 +0000
+++ b/net/server_event.lua	Mon Dec 07 18:42:31 2009 +0000
@@ -747,7 +747,8 @@
 
 
 local loop = function( )  -- starts the event loop
-	return base:loop( )
+	base:loop( )
+	return "quitting";
 end
 
 local newevent = ( function( )