nip46: fix using nil relay pointer when connection fails.

This commit is contained in:
fiatjaf
2024-09-11 16:42:56 -03:00
parent 5e2e0bf458
commit 1b7f191bc4

View File

@@ -231,8 +231,8 @@ func (bunker *BunkerClient) RPC(ctx context.Context, method string, params []str
case hasWorked <- struct{}{}:
default:
}
relay.Publish(ctx, evt)
}
relay.Publish(ctx, evt)
}(url)
}