Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aea0bb4d authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Ensure WAIT packet upon HELO in --suspend mode" am: 5e947c04

parents 6436a282 5e947c04
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1006,12 +1006,15 @@ public final class Debug
        // been replaced with an implementation that will suspendAll and
        // send VM_START.
        System.out.println("Waiting for debugger first packet");

        mWaiting = true;
        while (!isDebuggerConnected()) {
            try {
                Thread.sleep(100);
            } catch (InterruptedException ie) {
            }
        }
        mWaiting = false;

        System.out.println("Debug.suspendAllAndSentVmStart");
        VMDebug.suspendAllAndSendVmStart();