diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-12-07 18:42:31 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-12-07 18:42:31 +0000 |
commit | 0e534e4ba5b6f86f3a2d91d1450875d1b3179409 (patch) | |
tree | fe18dab00edba8d8e9b4de7b100deae7169b079d | |
parent | 97680a1c215edb26bcd554fb3f86dc182f64c3fc (diff) | |
download | prosody-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
-rw-r--r-- | net/server_event.lua | 3 |
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( ) |