summaryrefslogtreecommitdiffstats
path: root/update_topic.py
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2016-02-22 04:45:39 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2016-02-22 04:46:50 +0100
commit13d6de588b31e6d29a79623a5c6b8a575a25deb3 (patch)
tree02fedaaee1309d361d0e6310cbe4559a9e41f08a /update_topic.py
parent4583a626a53713601e4cac38ee6574d380d7ed53 (diff)
downloadupdate-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.py3
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: