Skip to content

Commit

Permalink
Merge pull request #32 from JerryZhongJ/fix-exit-panic
Browse files Browse the repository at this point in the history
Fix #31 by removing .expect() after sender.send()
  • Loading branch information
George-Miao authored Apr 2, 2024
2 parents 5167756 + 48cb443 commit b09e1fa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clashctl/src/ui/utils/tui_logger.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ impl log::Log for Logger {
}
inner
.sender
.send(Event::Diagnostic(DiagnosticEvent::Log(level, content)))
.expect("All receivers dropped");
.send(Event::Diagnostic(DiagnosticEvent::Log(level, content))).ok();

}

fn flush(&self) {}
Expand Down

0 comments on commit b09e1fa

Please sign in to comment.