8000 fruity: Fix PortableCoreDevice flush infinite loop by mrmacete · Pull Request #1207 · frida/frida-core · GitHub
[go: up one dir, main page]

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/fruity/device-monitor.vala
Original file line number Diff line number Diff line change
Expand Up @@ -1149,17 +1149,17 @@ namespace Frida.Fruity {
}

lock (state) {
if (pending_usb_ops.is_empty)
if (pending_usb_ops.is_empty) {
state = STOPPING;
break;
}
}

continue;
}

int completed = 0;
usb_context.handle_events_completed (out completed);

if (AtomicUint.compare_and_exchange (ref polled_usb_outdated, 1, 0))
if (s != FLUSHING && AtomicUint.compare_and_exchange (ref polled_usb_outdated, 1, 0))
refresh_polled_usb_devices ();
}

Expand Down
Loading
0