Changeset

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
parents 2332:7772dde4010b
children 2334:4cedfeeaaed4
files net/server_event.lua
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
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( )