bridge state: use TRANSIENT_DISCONNECT if connection drops and is expected to come back soon

This commit is contained in:
Sumner Evans
2022-01-12 08:59:09 -07:00
parent feac31e841
commit a0fd98b9e2
+1 -1
View File
@@ -240,7 +240,7 @@ class User(DBUser, AbstractUser, BaseUser):
)
else:
await self.push_bridge_state(
BridgeStateEvent.UNKNOWN_ERROR, ttl=240, error="tg-not-connected"
BridgeStateEvent.TRANSIENT_DISCONNECT, ttl=240, error="tg-not-connected"
)
async def fill_bridge_state(self, state: BridgeState) -> None: