Skip to content

Commit

Permalink
fix infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
lunaynx committed Dec 12, 2024
1 parent d585393 commit b61eadb
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,10 @@ object Ping {
return
}
if (System.nanoTime() - lastPongAt > 1_000_000L * 5_000) {
if (invokedCommand) displayPing()
if (invokedCommand) {
invokedCommand = false
displayPing()
}
return
}
Skytils.launch {
Expand Down

0 comments on commit b61eadb

Please sign in to comment.