also remove main relays after send

This commit is contained in:
Believethehype
2024-11-13 08:15:34 +01:00
parent 53c37f73dc
commit c62c5d1687
3 changed files with 8 additions and 2 deletions

View File

@@ -251,6 +251,11 @@ async def send_event_outbox(event: Event, client, dvm_config) -> EventId:
try:
await outboxclient.connect()
event_id = await outboxclient.send_event(event)
for relay in relays:
try:
await outboxclient.force_remove_relay(relay)
except:
print("Error removing relay: " + relay)
except Exception as e:
# Love yourself then.
event_id = None