From 0ca6dc2c6fab9adc8f42c05bfe8dbf924ec8c523 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christoffer=20Fjellstr=C3=B6m?= Date: Sat, 30 Sep 2017 09:30:29 +0200 Subject: [PATCH] Remove duplicate locking Fixes duplicated code after merge --- client/client.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/client/client.go b/client/client.go index aeac986..bcf9722 100644 --- a/client/client.go +++ b/client/client.go @@ -225,8 +225,6 @@ func (client *Client) do(funcname string, data []byte, if client.conn == nil { return "", ErrLostConn } - client.Lock() - defer client.Unlock() var result = make(chan handleOrError, 1) client.Lock() defer client.Unlock()