mirror of
https://github.com/jeremyd/ergo.git
synced 2026-06-11 15:23:31 -07: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:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user