Commit e1893f08 authored by Sam Rushing's avatar Sam Rushing

field_conn.draw_window: catch ClosedError

parent 5e8af30d
......@@ -175,7 +175,10 @@ class field_conn (websocket, quadtree.ob):
r = ['F']
self.draw_qt (r, self.field.Q_back)
self.draw_qt (r, self.field.Q_obs)
try:
self.send_text ('|'.join (r))
except coro.ClosedError:
self.handle_close()
def send_text (self, payload):
with self.send_mutex:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment