We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6581eb5 commit 20ee796Copy full SHA for 20ee796
src/application.rs
@@ -281,10 +281,9 @@ impl NotifyApplication {
281
impl models::NetworkMonitorProxy for Proxies {
282
fn listen(&self) -> Pin<Box<dyn Stream<Item = ()>>> {
283
let (tx, rx) = async_channel::bounded(1);
284
- let mut prev_available = Rc::new(Cell::new(false));
+ let prev_available = Rc::new(Cell::new(false));
285
286
gio::NetworkMonitor::default().connect_network_changed(move |_, available| {
287
- dbg!("sent", available);
288
if available && !prev_available.get() {
289
if let Err(e) = tx.send_blocking(()) {
290
warn!(error = %e);
0 commit comments