We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf4539e commit c52308cCopy full SHA for c52308c
1 file changed
src/data/poller.rs
@@ -108,22 +108,28 @@ pub fn start_poller(poll_tx: Sender<PollSnapshot>) -> PollerHandle {
108
full
109
}
110
Err(_) => {
111
- thread::sleep(Duration::from_secs(1));
+ if stop_rx.recv_timeout(Duration::from_secs(1)).is_ok() {
112
+ break;
113
+ }
114
continue;
115
116
117
} else {
118
match poll_fast() {
119
Ok(fast) => merge_cached_serve_sessions(fast, &cached_serve),
120
121
122
123
124
125
126
127
};
128
129
let _ = poll_tx.send(snapshot);
130
131
132
133
134
});
135
0 commit comments