mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 10:10:08 -08: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:
parent
a74450d6ca
commit
c0192e0e52
1 changed files with 1 additions and 0 deletions
|
|
@ -263,6 +263,7 @@ func (server *Server) RunClient(conn clientConn, proxyLine string) {
|
||||||
nickCasefolded: "*",
|
nickCasefolded: "*",
|
||||||
nickMaskString: "*", // * is used until actual nick is given
|
nickMaskString: "*", // * is used until actual nick is given
|
||||||
}
|
}
|
||||||
|
client.writerSemaphore.Initialize(1)
|
||||||
client.history.Initialize(config.History.ClientLength, config.History.AutoresizeWindow)
|
client.history.Initialize(config.History.ClientLength, config.History.AutoresizeWindow)
|
||||||
client.brbTimer.Initialize(client)
|
client.brbTimer.Initialize(client)
|
||||||
session := &Session{
|
session := &Session{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue