Unlock auto-messages to prevent dead-locks

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-05-11 01:01:12 +02:00
parent ef0767e396
commit aa735fc01f
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

View file

@ -149,6 +149,7 @@ func (c *configFile) updateAutoMessagesFromConfig(old *configFile) {
nam.lastMessageSent = oam.lastMessageSent
nam.linesSinceLastMessage = oam.linesSinceLastMessage
oam.lock.Unlock()
}
}
}