3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-13 07:29:30 +01:00

add missing initialization for writerSemaphore

It was only initialized for always-on clients, not for regular clients.
This explains a lot in terms of #812 failing to reproduce.
This commit is contained in:
Shivaram Lingamneni 2020-03-02 01:32:08 -05:00
parent a74450d6ca
commit c0192e0e52

View File

@ -263,6 +263,7 @@ func (server *Server) RunClient(conn clientConn, proxyLine string) {
nickCasefolded: "*",
nickMaskString: "*", // * is used until actual nick is given
}
client.writerSemaphore.Initialize(1)
client.history.Initialize(config.History.ClientLength, config.History.AutoresizeWindow)
client.brbTimer.Initialize(client)
session := &Session{