Skip to content

Commit 77116e3

Browse files
committed
Merge pull request #65 from alexmipego/lldb-python-connect-fix
Fix lldb status checking
2 parents e2f436a + bf5a1e0 commit 77116e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ios-deploy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def connect_command(debugger, command, result, internal_dict):\n\
7777
listener = lldb.target.GetDebugger().GetListener()\n\
7878
listener.StartListeningForEvents(process.GetBroadcaster(), lldb.SBProcess.eBroadcastBitStateChanged)\n\
7979
events = []\n\
80-
state = lldb.eStateInvalid\n\
80+
state = (process.GetState() or lldb.eStateInvalid)\n\
8181
while state != lldb.eStateConnected:\n\
8282
event = lldb.SBEvent()\n\
8383
if listener.WaitForEvent(1, event):\n\

0 commit comments

Comments
 (0)