mirror of
https://github.com/ScuroNeko/mtg.git
synced 2026-09-02 00:11:56 +03:00
Correctly reset relay state
This commit is contained in:
@@ -36,11 +36,6 @@ func AcquireRelay(ctx context.Context, logger Logger, bufferSize int, idleTimeou
|
||||
}
|
||||
|
||||
func ReleaseRelay(r *Relay) {
|
||||
r.ctxCancel()
|
||||
|
||||
r.ctx = nil
|
||||
r.ctxCancel = nil
|
||||
r.logger = nil
|
||||
|
||||
r.Reset()
|
||||
relayPool.Put(r)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user