Skip to content

Commit

Permalink
base: Only disable sleep in WASM but still continue
Browse files Browse the repository at this point in the history
  • Loading branch information
stoically committed May 12, 2020
1 parent aa42951 commit 1241fd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions matrix_sdk/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -848,10 +848,9 @@ impl Client {
r
} else {
#[cfg(not(target_arch = "wasm32"))]
{
sleep::new(Duration::from_secs(1)).await;
continue;
}
sleep::new(Duration::from_secs(1)).await;

continue;
};

// TODO send out to-device messages here
Expand Down

0 comments on commit 1241fd7

Please sign in to comment.