Skip to content

Commit 31a151a

Browse files
authored
Change port used to detect running instance
1 parent 842c353 commit 31a151a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

core/common/src/main/kotlin/app/cleanmeter/core/common/process/SingleInstance.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fun singleInstance(args: Array<out String>, block: () -> Unit) {
2121
}
2222

2323
private fun isAppAlreadyRunning() = try {
24-
ServerSocket(1337).apply {
24+
ServerSocket(42069).apply {
2525
Runtime.getRuntime().addShutdownHook(Thread {
2626
close()
2727
})
@@ -37,4 +37,4 @@ private fun isAppAlreadyRunning() = try {
3737
false
3838
} catch (ex: Exception) {
3939
true
40-
}
40+
}

0 commit comments

Comments
 (0)