Remove duplicate locking

Fixes duplicated code after merge
This commit is contained in:
Christoffer Fjellström 2017-09-30 09:30:29 +02:00 committed by GitHub
parent 7b6215604e
commit 0ca6dc2c6f

View File

@ -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()