[pypy-svn] r64490 - pypy/trunk/demo

cfbolz at codespeak.net cfbolz at codespeak.net
Tue Apr 21 11:19:02 CEST 2009


Author: cfbolz
Date: Tue Apr 21 11:19:00 2009
New Revision: 64490

Modified:
   pypy/trunk/demo/sharedref.py
Log:
be nice and close sockets


Modified: pypy/trunk/demo/sharedref.py
==============================================================================
--- pypy/trunk/demo/sharedref.py	(original)
+++ pypy/trunk/demo/sharedref.py	Tue Apr 21 11:19:00 2009
@@ -177,4 +177,8 @@
             chan = server(port)
         channels.append(chan)
 
-    mainloop(channels)
+    try:
+        mainloop(channels)
+    finally:
+        for channel in channels:
+                channel.s.close()



More information about the Pypy-commit mailing list