Fix error?

This commit is contained in:
Jonathan Staab 2023-02-04 14:26:11 -06:00
parent 658911ce9f
commit a55336786b

View File

@ -67,7 +67,10 @@ class Connection {
}
async disconnect() {
this.status = 'closed'
await this.nostr.close()
if (this.nostr) {
await this.nostr.close()
}
}
}