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 192fb98 commit b7b80baCopy full SHA for b7b80ba
crates/chat-cli/src/telemetry/mod.rs
@@ -162,8 +162,15 @@ impl TelemetryThread {
162
pub async fn finish(self) -> Result<(), TelemetryError> {
163
drop(self.tx);
164
if let Some(handle) = self.handle {
165
- if let Err(e) = tokio::time::timeout(std::time::Duration::from_millis(1000), handle).await {
166
- return Err(TelemetryError::Timeout(e));
+ match tokio::time::timeout(std::time::Duration::from_millis(1000), handle).await {
+ Ok(result) => {
167
+ if let Err(e) = result {
168
+ return Err(TelemetryError::Join(e));
169
+ }
170
+ },
171
+ Err(_) => {
172
+ // Ignore timeout errors
173
174
}
175
176
0 commit comments