loop, dont crash
This commit is contained in:
parent
01179d14f2
commit
357dae108a
@ -852,7 +852,14 @@ impl Web3Rpc {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
unimplemented!();
|
// TODO: what should we do here?
|
||||||
|
loop {
|
||||||
|
if *subscribe_stop_rx.borrow() {
|
||||||
|
trace!("stopping ws block subscription on {}", self);
|
||||||
|
return Ok(());
|
||||||
|
}
|
||||||
|
subscribe_stop_rx.changed().await?;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
Reference in New Issue
Block a user