From a05a961e7fa44259fe2768f43e53dde8888860ba Mon Sep 17 00:00:00 2001 From: Thomas Kriechbaumer Date: Wed, 20 Jan 2016 19:31:37 +0100 Subject: [PATCH] cleanup lock usage --- libmproxy/protocol/http.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/protocol/http.py b/libmproxy/protocol/http.py index dad97fc39..a8626af86 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())