From 151c6df4cccb4d8dcf8e0c3a24ad8d511f3dff73 Mon Sep 17 00:00:00 2001 From: Christopher Schnick Date: Thu, 18 Jul 2024 14:49:30 +0200 Subject: [PATCH] Sync key listener --- .../com/crschnick/pdxu/app/installation/GameKeyListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pdxu-app/src/main/java/com/crschnick/pdxu/app/installation/GameKeyListener.java b/pdxu-app/src/main/java/com/crschnick/pdxu/app/installation/GameKeyListener.java index 3e1b62a2..c0553eca 100644 --- a/pdxu-app/src/main/java/com/crschnick/pdxu/app/installation/GameKeyListener.java +++ b/pdxu-app/src/main/java/com/crschnick/pdxu/app/installation/GameKeyListener.java @@ -42,7 +42,7 @@ public void nativeKeyPressed(NativeKeyEvent e) { } - private boolean canPass(int action) { + private synchronized boolean canPass(int action) { if (lastCheck == 0 || action != lastAction) { lastAction = action; lastCheck = System.currentTimeMillis();