Use canaries
This commit is contained in:
parent
a4a8174ea3
commit
c0fc9589dc
1 changed files with 2 additions and 0 deletions
|
|
@ -183,6 +183,8 @@ impl State {
|
||||||
};
|
};
|
||||||
|
|
||||||
select! {
|
select! {
|
||||||
|
_ = tx_canary => (),
|
||||||
|
_ = rx_canary => (),
|
||||||
_ = Self::listen(&mut ws_rx, &event_tx) => (),
|
_ = Self::listen(&mut ws_rx, &event_tx) => (),
|
||||||
_ = Self::send_ping_events(&event_tx) => (),
|
_ = Self::send_ping_events(&event_tx) => (),
|
||||||
_ = state.handle_events(&event_tx, &mut event_rx) => (),
|
_ = state.handle_events(&event_tx, &mut event_rx) => (),
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue