Skip to content

Commit 4424531

Browse files
Readability reordering
1 parent 244c781 commit 4424531

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/replit_river/v2/client_transport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ async def get_or_create_session(self) -> Session:
8282
return existing_session
8383

8484
async def _retry_connection(self) -> Session:
85-
if not self._transport_options.transparent_reconnect and self._session:
85+
if self._session and not self._transport_options.transparent_reconnect:
8686
logger.info("transparent_reconnect not set, closing {self._transport_id}")
8787
await self._session.close()
8888
return await self.get_or_create_session()

0 commit comments

Comments
 (0)