diff --git a/client.go b/client.go index d028dfb..006191c 100644 --- a/client.go +++ b/client.go @@ -1137,6 +1137,10 @@ func (c *Client) GetClient() *http.Client { func (c *Client) Clone() *Client { // dereference the pointer and copy the value cc := *c + + // lock values should not be copied - thus new values are used. + cc.afterResponseLock = &sync.RWMutex{} + cc.udBeforeRequestLock = &sync.RWMutex{} return &cc }