diff options
author | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-01-20 19:31:37 +0100 |
---|---|---|
committer | Thomas Kriechbaumer <thomas@kriechbaumer.name> | 2016-02-04 09:52:03 +0100 |
commit | a05a961e7fa44259fe2768f43e53dde8888860ba (patch) | |
tree | a3a376ae0f7d7d458d30666f9fb7b812e2966451 /libmproxy | |
parent | 94977e0e3ddc16c70386b1f4d443984ff84320ac (diff) | |
download | mitmproxy-a05a961e7fa44259fe2768f43e53dde8888860ba.tar.gz mitmproxy-a05a961e7fa44259fe2768f43e53dde8888860ba.tar.bz2 mitmproxy-a05a961e7fa44259fe2768f43e53dde8888860ba.zip |
cleanup lock usage
Diffstat (limited to 'libmproxy')
-rw-r--r-- | libmproxy/protocol/http.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index dad97fc3..a8626af8 100644 --- a/libmproxy/protocol/http.py +++ b/libmproxy/protocol/http.py @@ -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()) |