r.writeQueue doesn't have to be closed.

This commit is contained in:
fiatjaf
2026-03-08 22:58:36 -03:00
parent 2c0d9712e3
commit 4348c64b14
-3
View File
@@ -125,9 +125,6 @@ func NewRelay(ctx context.Context, url string, opts RelayOptions) *Relay {
if r.closedNotify != nil {
close(r.closedNotify)
}
if r.writeQueue != nil {
close(r.writeQueue)
}
r.conn = nil
r.closeMutex.Unlock()
}