cleanup lock usage

This commit is contained in:
Thomas Kriechbaumer 2016-01-20 19:31:37 +01:00
parent 94977e0e3d
commit a05a961e7f

View File

@ -163,7 +163,7 @@ class SafeH2Connection(H2Connection):
self.conn.send(self.data_to_send()) self.conn.send(self.data_to_send())
def safe_update_settings(self, new_settings): def safe_update_settings(self, new_settings):
with self.conn.h2.lock: with self.lock:
self.update_settings(new_settings) self.update_settings(new_settings)
self.conn.send(self.data_to_send()) self.conn.send(self.data_to_send())