<DIV>I've noticed that when running an example client, the reactor shuts down </DIV>
<DIV>cleanly, but it does not when running an example server.</DIV>
<DIV>&nbsp;</DIV>
<DIV>I've cludged some code for my testing that works fine for now, </DIV>
<DIV>shutting down the reactor when there's no delayed calls:</DIV>
<DIV>&nbsp;</DIV>
<DIV>def stopWhenIdle():<BR>&nbsp;&nbsp;&nbsp; count=len(reactor.getDelayedCalls())<BR>&nbsp;&nbsp;&nbsp; if count:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reactor.callLater(1,stopWhenIdle)<BR>&nbsp;&nbsp;&nbsp; else:<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; reactor.stop()<BR></DIV>
<DIV>But where does the client normally stop the reactor?</DIV>
<DIV>&nbsp;</DIV>
<DIV>Thanks!</DIV>
<DIV>&nbsp;</DIV><BR><BR>Bill la Forge<br>http://www.geocities.com/laforge49/<p><font face=arial size=-1>
<a href="http://in.rd.yahoo.com/specials/mailtg/*http://yahoo.shaadi.com/india-matrimony/" target="_blank">
<b>Yahoo! India Matrimony</a>:</b> Find your partner 
<a href="http://in.rd.yahoo.com/specials/mailtg2/*http://yahoo.shaadi.com/india-matrimony/community.php" target="_blank">online</a>.</font>