From e1fd0ce0101b1ad81ac72da2c364e51d0f6bbd79 Mon Sep 17 00:00:00 2001 From: Bernhard Tittelbach Date: Fri, 5 Mar 2010 04:24:40 +0000 Subject: [PATCH] debugging --- track-presence.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/track-presence.py b/track-presence.py index 0f449ad..0d76030 100644 --- a/track-presence.py +++ b/track-presence.py @@ -336,9 +336,9 @@ class ConnectionListener: except OSError: pass self.server_socket.bind(self.uwscfg.tracker_server_socket) - self.server_socket.listen(backlog=2) + self.server_socket.listen(2) while (self.running): - (ready_to_read, ready_to_write, in_error) = select.select(rlist=[self.server_socket]+self.client_sockets, wlist=[], xlist=[]) + (ready_to_read, ready_to_write, in_error) = select.select([self.server_socket]+self.client_sockets, [], []) for socket_to_read in ready_to_read: if socket_to_read == self.server_socket: newsocketconn, addr = self.server_socket.accept() @@ -386,3 +386,4 @@ track_sensorstatus_thread = threading.Thread(target=trackSensorStatusThread,args track_sensorstatus_thread.start() #ConnectionListener servers incoming socket connections and distributes status update connection_listener = ConnectionListener(uwscfg, status_tracker) +connection_listener.serve() \ No newline at end of file -- 1.7.10.4