From: <cne...@us...> - 2009-06-17 15:00:37
|
Revision: 38 http://cgos.svn.sourceforge.net/cgos/?rev=38&view=rev Author: cnentwich Date: 2009-06-17 15:00:32 +0000 (Wed, 17 Jun 2009) Log Message: ----------- Fixed nasty socket bug introduced by writing directly to socket instead of file. client now playing stable again, with multiple engines. Modified Paths: -------------- trunk/client-python/src/cgosclient.py Modified: trunk/client-python/src/cgosclient.py =================================================================== --- trunk/client-python/src/cgosclient.py 2009-06-17 08:53:00 UTC (rev 37) +++ trunk/client-python/src/cgosclient.py 2009-06-17 15:00:32 UTC (rev 38) @@ -162,7 +162,8 @@ def _respond(self, message): if self._socket is not None: self.logger.debug("Responding: " + message) - self._socket.sendall(message) + self._socketfile.write(message) + self._socketfile.flush() def _handle_info(self, parameters): ''' Event handler: "info". Ignored. ''' This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |