From bf5a1e065ee4ed6468503fc49d1686b4ac71663c Mon Sep 17 00:00:00 2001 From: Alexandre Gomes Date: Mon, 6 Oct 2014 13:36:31 +0100 Subject: [PATCH] fix lldb status checking --- ios-deploy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ios-deploy.c b/ios-deploy.c index 75b083a..efdca28 100644 --- a/ios-deploy.c +++ b/ios-deploy.c @@ -77,7 +77,7 @@ def connect_command(debugger, command, result, internal_dict):\n\ listener = lldb.target.GetDebugger().GetListener()\n\ listener.StartListeningForEvents(process.GetBroadcaster(), lldb.SBProcess.eBroadcastBitStateChanged)\n\ events = []\n\ - state = lldb.eStateInvalid\n\ + state = (process.GetState() or lldb.eStateInvalid)\n\ while state != lldb.eStateConnected:\n\ event = lldb.SBEvent()\n\ if listener.WaitForEvent(1, event):\n\