mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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)));
|
||||
}
|
||||
|
||||
loop {
|
||||
let event = match global.receive_event() {
|
||||
Ok(event) => event,
|
||||
Err(_) => break,
|
||||
};
|
||||
while let Ok(event) = global.receive_event() {
|
||||
global.handle_event(event);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue