From e1ce9843bf0669acd3caa5227577309278d3dbb0 Mon Sep 17 00:00:00 2001 From: Josh Rickmar Date: Thu, 21 Nov 2013 10:48:35 -0500 Subject: [PATCH] Add missing mutex unlock if an error is hit. Spotted by dhill. --- sockets.go | 1 + 1 file changed, 1 insertion(+) diff --git a/sockets.go b/sockets.go index 2f38117..9cdc366 100644 --- a/sockets.go +++ b/sockets.go @@ -378,6 +378,7 @@ func ProcessBtcdNotificationReply(b []byte) { delete(replyRouter.m, routeID) } else { // Can't route to a frontend, drop reply. + replyRouter.Unlock() log.Info("Unable to route btcd reply to frontend. Dropping.") return }