From fc36200ee4cbdb7fe6dc74e119262047bb240a05 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Antoine=20Beaupr=C3=A9?= Date: Sun, 1 Dec 2013 01:07:19 -0500 Subject: [PATCH] fix crash after introduction of immediate mode this fixes the following backtrace: Exception happened during processing of request from ('127.0.0.1', 41192) Traceback (most recent call last): File /usr/lib/python2.7/SocketServer.py, line 295, in _handle_request_noblock self.process_request(request, client_address) File /usr/lib/python2.7/SocketServer.py, line 321, in process_request self.finish_request(request, client_address) File /usr/lib/python2.7/SocketServer.py, line 334, in finish_request self.RequestHandlerClass(request, client_address, self) File /usr/lib/python2.7/SocketServer.py, line 649, in __init__ self.handle() File ./irkerd, line 820, in handle irker.handle(line.strip()) File ./irkerd, line 786, in handle self.servers[target.server()].dispatch(target.channel, message, target.key, quit_after=quit_after) File ./irkerd, line 641, in dispatch eligibles[0].enqueue(channel, message, key) TypeError: enqueue() takes exactly 5 arguments (4 given) when running: ./irk irker-test test --- irkerd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/irkerd b/irkerd index 8dedeba..a107c5e 100755 --- a/irkerd +++ b/irkerd @@ -428,7 +428,7 @@ class Connection: for (channel, message, key) in qcopy: self.queue.put((channel, message, key)) self.status = "ready" - def enqueue(self, channel, message, key, quit_after): + def enqueue(self, channel, message, key, quit_after=False): "Enque a message for transmission." if self.thread is None or not self.thread.is_alive(): self.status = "unseen" -- 2.26.2