mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 07:18:39 +09:00
Add missing call to WaitForIsDebuggerRegistered
This commit is contained in:
parent
b7f6024e34
commit
d4b247abb3
1 changed files with 6 additions and 0 deletions
|
|
@ -2543,6 +2543,12 @@ WorkerPrivateParent<Derived>::DisableDebugger()
|
|||
|
||||
WorkerPrivate* self = ParentAsWorkerPrivate();
|
||||
|
||||
// RegisterDebugger might have been dispatched but not completed.
|
||||
// Wait for its execution to complete before unregistering.
|
||||
if (!NS_IsMainThread()) {
|
||||
self->WaitForIsDebuggerRegistered(true);
|
||||
}
|
||||
|
||||
if (NS_FAILED(UnregisterWorkerDebugger(self))) {
|
||||
NS_WARNING("Failed to unregister worker debugger!");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue