diff --git a/configuration/configuration.go b/configuration/configuration.go index cd077125..ff4688ef 100644 --- a/configuration/configuration.go +++ b/configuration/configuration.go @@ -152,7 +152,9 @@ func (c *client) DeleteParser(transactionID string) error { if !ok { return NewConfError(ErrTransactionDoesNotExist, transactionID) } + c.clientMu.Lock() delete(c.parsers, transactionID) + c.clientMu.Unlock() return nil }