Skip to content
This repository was archived by the owner on Dec 18, 2022. It is now read-only.

Commit b6070e7

Browse files
committed
add null check
1 parent 8df957c commit b6070e7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

topl-core/src/main/java/io/matthewnelson/topl_core/OnionProxyManager.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -556,7 +556,7 @@ class OnionProxyManager(
556556
waitForFileCreation(ConfigFile.CONTROL_PORT_FILE)
557557
connectToTorControlSocket()
558558
} catch (e: Exception) {
559-
torProcess.destroy()
559+
torProcess?.destroy()
560560
torStateMachine.setTorState(TorState.OFF)
561561
throw IOException(e)
562562
}

0 commit comments

Comments
 (0)