Software / code / prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
| 2332:7772dde4010b | 2333:ed824115becf |
|---|---|
| 745 end | 745 end |
| 746 end | 746 end |
| 747 | 747 |
| 748 | 748 |
| 749 local loop = function( ) -- starts the event loop | 749 local loop = function( ) -- starts the event loop |
| 750 return base:loop( ) | 750 base:loop( ) |
| 751 return "quitting"; | |
| 751 end | 752 end |
| 752 | 753 |
| 753 local newevent = ( function( ) | 754 local newevent = ( function( ) |
| 754 local add = base.addevent | 755 local add = base.addevent |
| 755 return function( ... ) | 756 return function( ... ) |