mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-09-27 12:29:58 +02:00
wait when CLOSEing.
This commit is contained in:
@@ -108,7 +108,7 @@ func (sub *Subscription) Close() {
|
||||
closeMsg := CloseEnvelope(id)
|
||||
closeb, _ := (&closeMsg).MarshalJSON()
|
||||
debugLog("{%s} sending %v", sub.Relay.URL, closeb)
|
||||
sub.Relay.Write(closeb)
|
||||
<-sub.Relay.Write(closeb)
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user