I get this error in rare cases. I think WaitGroup is used incorrectly.
panic: sync: negative WaitGroup counter goroutine 116030 [running]: sync.(*WaitGroup).Add(0xc0000db688?, 0x20c5cb8?) /usr/lib/go/src/sync/waitgroup.go:64 +0xcd sync.(*WaitGroup).Done(...) /usr/lib/go/src/sync/waitgroup.go:89 github.com/celestix/gotgproto.(*Client).Start.func1(0xc00514a780) /home/casper/go/pkg/mod/github.com/celestix/gotgproto@v1.0.0-beta21/client.go:423 +0x1d4 created by github.com/celestix/gotgproto.(*Client).Start in goroutine 115828 /home/casper/go/pkg/mod/github.com/celestix/gotgproto@v1.0.0-beta21/client.go:411 +0x1a7
I get this error in rare cases. I think WaitGroup is used incorrectly.
panic: sync: negative WaitGroup counter goroutine 116030 [running]: sync.(*WaitGroup).Add(0xc0000db688?, 0x20c5cb8?) /usr/lib/go/src/sync/waitgroup.go:64 +0xcd sync.(*WaitGroup).Done(...) /usr/lib/go/src/sync/waitgroup.go:89 github.com/celestix/gotgproto.(*Client).Start.func1(0xc00514a780) /home/casper/go/pkg/mod/github.com/celestix/gotgproto@v1.0.0-beta21/client.go:423 +0x1d4 created by github.com/celestix/gotgproto.(*Client).Start in goroutine 115828 /home/casper/go/pkg/mod/github.com/celestix/gotgproto@v1.0.0-beta21/client.go:411 +0x1a7