Add missing mutex unlock if an error is hit.

Spotted by dhill.
This commit is contained in:
Josh Rickmar 2013-11-21 10:48:35 -05:00
parent 47b5e17917
commit e1ce9843bf

View file

@ -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
}