mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Use a while let loop for the DedicatedWorkerGlobalScope event loop.
This commit is contained in:
parent
5e1be29743
commit
d19ddfe6f3
1 changed files with 1 additions and 5 deletions
|
@ -219,11 +219,7 @@ impl DedicatedWorkerGlobalScope {
|
||||||
Reporter(reporter_sender)));
|
Reporter(reporter_sender)));
|
||||||
}
|
}
|
||||||
|
|
||||||
loop {
|
while let Ok(event) = global.receive_event() {
|
||||||
let event = match global.receive_event() {
|
|
||||||
Ok(event) => event,
|
|
||||||
Err(_) => break,
|
|
||||||
};
|
|
||||||
global.handle_event(event);
|
global.handle_event(event);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue