Software /
code /
prosody
Comparison
net/server_event.lua @ 2335:060fb67cefd5
net.server_event: Add setquitting() function to be compatible with net.server_select
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Mon, 07 Dec 2009 19:26:12 +0000 |
parent | 2334:4cedfeeaaed4 |
child | 2336:fb1d9d2444df |
comparison
equal
deleted
inserted
replaced
2334:4cedfeeaaed4 | 2335:060fb67cefd5 |
---|---|
764 item:close( arg ) | 764 item:close( arg ) |
765 end | 765 end |
766 end | 766 end |
767 end | 767 end |
768 | 768 |
769 local function setquitting(yes) | |
770 if yes then | |
771 -- Quit now | |
772 closeallservers(); | |
773 base:loopexit(); | |
774 end | |
775 end | |
776 | |
769 return { | 777 return { |
770 | 778 |
771 cfg = cfg, | 779 cfg = cfg, |
772 base = base, | 780 base = base, |
773 loop = loop, | 781 loop = loop, |