File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/io/github/berstanio/pymobiledevice3/ipc Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff 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"));
You can’t perform that action at this time.
0 commit comments