mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-08 16:20:02 +00:00
Unlock auto-messages to prevent dead-locks
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ef0767e396
commit
aa735fc01f
1 changed files with 1 additions and 0 deletions
|
@ -149,6 +149,7 @@ func (c *configFile) updateAutoMessagesFromConfig(old *configFile) {
|
||||||
|
|
||||||
nam.lastMessageSent = oam.lastMessageSent
|
nam.lastMessageSent = oam.lastMessageSent
|
||||||
nam.linesSinceLastMessage = oam.linesSinceLastMessage
|
nam.linesSinceLastMessage = oam.linesSinceLastMessage
|
||||||
|
oam.lock.Unlock()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue