From 949f75c77cf0ccda419313d45cfe60c5ed0e703a Mon Sep 17 00:00:00 2001 From: Antioch Peverell Date: Wed, 7 Nov 2018 09:40:39 +0000 Subject: [PATCH] fix the lock on the new mutex (#1942) --- p2p/src/peer.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/p2p/src/peer.rs b/p2p/src/peer.rs index 14ec1751..4d06a087 100644 --- a/p2p/src/peer.rs +++ b/p2p/src/peer.rs @@ -285,6 +285,7 @@ impl Peer { self.connection .as_ref() .unwrap() + .lock() .send(h, msg::Type::TransactionKernel)?; Ok(true) } else { @@ -359,6 +360,7 @@ impl Peer { self.connection .as_ref() .unwrap() + .lock() .send(&h, msg::Type::GetTransaction) }