Skip to content

Commit

Permalink
Fix Android Parallel/Shards Race Condition (#1867)
Browse files Browse the repository at this point in the history
  • Loading branch information
rasyid7 authored Aug 14, 2024
1 parent 02c2214 commit d00d0ad
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ object MaestroSessionManager {
val heartbeatFuture = executor.scheduleAtFixedRate(
{
try {
Thread.sleep(1000) // Add a 1-second delay here for fixing race condition
SessionStore.heartbeat(sessionId, selectedDevice.platform)
} catch (e: Exception) {
logger.error("Failed to record heartbeat", e)
Expand Down

0 comments on commit d00d0ad

Please sign in to comment.