Skip to content

Commit

Permalink
Still send heartbeat while grace period
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenthebuilder committed Apr 23, 2024
1 parent 2178a8b commit bf681ae
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions replit_river/session.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,10 +250,7 @@ async def _heartbeat(
logging.debug("Start heartbeat")
while True:
await asyncio.sleep(self._transport_options.heartbeat_ms / 1000)
if (
self._state != SessionState.ACTIVE
or self._close_session_after_time_secs
):
if self._state != SessionState.ACTIVE:
logging.debug(
f"Session is closed, no need to send heartbeat, state : "
f"{self._state} close_session_after_this: "
Expand Down

0 comments on commit bf681ae

Please sign in to comment.