mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-26 10:16:27 +00:00
cleanup lock usage
This commit is contained in:
parent
94977e0e3d
commit
a05a961e7f
@ -163,7 +163,7 @@ class SafeH2Connection(H2Connection):
|
||||
self.conn.send(self.data_to_send())
|
||||
|
||||
def safe_update_settings(self, new_settings):
|
||||
with self.conn.h2.lock:
|
||||
with self.lock:
|
||||
self.update_settings(new_settings)
|
||||
self.conn.send(self.data_to_send())
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user