diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2016-02-22 04:45:39 +0100 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2016-02-22 04:46:50 +0100 |
commit | 13d6de588b31e6d29a79623a5c6b8a575a25deb3 (patch) | |
tree | 02fedaaee1309d361d0e6310cbe4559a9e41f08a /update_topic.py | |
parent | 4583a626a53713601e4cac38ee6574d380d7ed53 (diff) | |
download | update-topic-13d6de588b31e6d29a79623a5c6b8a575a25deb3.tar.gz update-topic-13d6de588b31e6d29a79623a5c6b8a575a25deb3.tar.bz2 update-topic-13d6de588b31e6d29a79623a5c6b8a575a25deb3.zip |
Disable writes to the socket to wait for the timer
Diffstat (limited to 'update_topic.py')
-rw-r--r-- | update_topic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/update_topic.py b/update_topic.py index 0de7370..bdcba6c 100644 --- a/update_topic.py +++ b/update_topic.py @@ -61,6 +61,9 @@ class Scheduler(asyncore.dispatcher): self.timer.cancel() asyncore.dispatcher.close() + def writable(self): + return False + def handle_read(self): data = self.recv(8192) if data: |