Return code 0 when running application found
This commit is contained in:
Armin Schrenk 2022-03-30 16:00:05 +02:00
parent 2de23f8fff
commit e8c63dd3f3
No known key found for this signature in database
GPG Key ID: 8F2992163CBBA7FC

View File

@ -79,7 +79,7 @@ public class Cryptomator {
communicator.sendHandleLaunchargs(List.of(args));
communicator.sendRevealRunningApp();
LOG.info("Found running application instance. Shutting down...");
return 2;
return 0;
} else {
shutdownHook.runOnShutdown(communicator::closeUnchecked);
var executor = Executors.newSingleThreadExecutor(new ThreadFactoryBuilder().setNameFormat("IPC-%d").build());