From: Micah D. <mi...@us...> - 2003-07-06 21:21:45
|
Update of /cvsroot/bzflag/pybzflag/BZFlag In directory sc8-pr-cvs1:/tmp/cvs-serv4485/BZFlag Modified Files: Network.py Log Message: Raise a ConnectionLost exception if one of our file descriptors disappears when it comes select()-time Index: Network.py =================================================================== RCS file: /cvsroot/bzflag/pybzflag/BZFlag/Network.py,v retrieving revision 1.2 retrieving revision 1.3 diff -w -u -r1.2 -r1.3 --- Network.py 6 Jul 2003 10:51:45 -0000 1.2 +++ Network.py 6 Jul 2003 21:21:43 -0000 1.3 @@ -191,7 +191,10 @@ selectables = selectDict.keys() while self.running: + try: (iwtd, owtd, ewtd) = select.select(selectables, [], [], self.pollTime) + except select.error: + raise Errors.ConnectionLost() readyList = iwtd + owtd + ewtd for ready in readyList: try: |