Skip to content

Commit

Permalink
fix for kwhat#277 (kwhat#278)
Browse files Browse the repository at this point in the history
  • Loading branch information
fabmars authored Feb 7, 2020
1 parent b0ef49f commit ef56182
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/java/org/jnativehook/GlobalScreen.java
Original file line number Diff line number Diff line change
Expand Up @@ -412,9 +412,8 @@ public static void registerNativeHook() throws NativeHookException {
break;
}
}

eventExecutor = new DefaultDispatchService();
}
eventExecutor = new DefaultDispatchService();

if (hookThread == null || !hookThread.isAlive()) {
hookThread = new NativeHookThread();
Expand Down

0 comments on commit ef56182

Please sign in to comment.