Skip to content

Commit 9106c64

Browse files
committed
move bridge close timer start
1 parent 2921f8f commit 9106c64

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

simd/simd.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -636,6 +636,9 @@ void gamefindcallback(uv_timer_t* handle)
636636
uv_timer_stop(handle);
637637
}
638638

639+
// start a timer to check if this game stops so we can start looking for a running game again if it does
640+
uv_timer_start(&bridgeclosetimer, bridgeclosecallback, 5, 5000);
641+
639642
if(err == 0)
640643
{
641644
if(simds.notify == true)
@@ -702,8 +705,6 @@ void datacheckcallback(uv_timer_t* handle)
702705
uv_timer_start(&datamaptimer, shmdatamapcallback, 2000, 16);
703706
}
704707
uv_timer_stop(handle);
705-
// i can make this more frequent but i need to be conscious of resources, don't want to trash anyone's frame rates
706-
uv_timer_start(&bridgeclosetimer, bridgeclosecallback, 5, 5000);
707708
}
708709
}
709710

0 commit comments

Comments
 (0)