Skip to content

Commit f91357c

Browse files
committed
--
1 parent 5ba559d commit f91357c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/io/github/berstanio/pymobiledevice3/ipc/PyMobileDevice3IPC.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -307,8 +307,10 @@ public CompletableFuture<Void> ensureTunneldRunning() {
307307
}
308308

309309
public static void main(String[] args) throws IOException {
310-
PyInstallation installation = PyInstallationHandler.install(new File("build/pyenv/"));
311-
DaemonHandler.startDaemon(installation);
310+
if (!DaemonHandler.isDaemonRunning()) {
311+
PyInstallation installation = PyInstallationHandler.install(new File("build/pyenv/"));
312+
DaemonHandler.startDaemon(installation);
313+
}
312314
try (PyMobileDevice3IPC ipc = new PyMobileDevice3IPC()) {
313315
//JSONObject object = ipc.decodePList(new File("/Volumes/ExternalSSD/IdeaProjects/MOE-Upstream/moe/samples-java/Calculator/ios/build/moe/xcodebuild/Release-iphoneos/ios.app/Info.plist")).join();
314316
//System.out.println(object.getString("CFBundleExecutable"));

0 commit comments

Comments
 (0)