Skip to content
Snippets Groups Projects
Commit c209b807 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

fixed #16

parent 3225a685
No related branches found
No related tags found
No related merge requests found
...@@ -253,7 +253,7 @@ class Connection(object): ...@@ -253,7 +253,7 @@ class Connection(object):
#todo why is that necessary? it doesnt pass travis CI if there's no this block #todo why is that necessary? it doesnt pass travis CI if there's no this block
self.listener_socket.oneshot(delay, callback) self.listener_socket.oneshot(delay, callback)
except AttributeError: except AttributeError:
print(dir(self)) pass #print(dir(self))
def unwatch_all(self, channel_id): def unwatch_all(self, channel_id):
""" """
......
...@@ -90,7 +90,7 @@ class EpollListener(object): ...@@ -90,7 +90,7 @@ class EpollListener(object):
if sock.on_write(): if sock.on_write():
# I'm done with sending for now # I'm done with sending for now
assert len(sock.data_to_send) == 0 and len(sock.priority_queue) == 0 assert len(sock.data_to_send) == 0 and len(sock.priority_queue) == 0
self.epoll.modify(sock.fileno(), RW) self.epoll.modify(sock.fileno(), RO)
except SocketFailed: except SocketFailed:
self.epoll.unregister(fd) self.epoll.unregister(fd)
......
...@@ -25,7 +25,6 @@ if __name__ == '__main__': ...@@ -25,7 +25,6 @@ if __name__ == '__main__':
except AMQPError: except AMQPError:
print(':)') print(':)')
while True: time.sleep(30)
time.sleep(30)
amqp.shutdown(True) amqp.shutdown(True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment