mirror of
https://github.com/mimblewimble/grin-wallet.git
synced 2025-02-01 08:51:09 +03:00
Fix: Log update thread do not exit after call ownerAPI. (#284)
This commit is contained in:
parent
f181a1e71d
commit
db6babfd72
1 changed files with 2 additions and 3 deletions
|
@ -57,8 +57,8 @@ pub fn start_updater_log_thread(
|
|||
) -> Result<(), Error> {
|
||||
let _ = thread::Builder::new()
|
||||
.name("wallet-updater-status".to_string())
|
||||
.spawn(move || loop {
|
||||
while let Ok(m) = rx.try_recv() {
|
||||
.spawn(move || {
|
||||
while let Ok(m) = rx.recv() {
|
||||
// save to our message queue to be read by other consumers
|
||||
{
|
||||
let mut q = queue.lock();
|
||||
|
@ -79,7 +79,6 @@ pub fn start_updater_log_thread(
|
|||
StatusMessage::UpdateWarning(s) => warn!("{}", s),
|
||||
}
|
||||
}
|
||||
thread::sleep(Duration::from_millis(500));
|
||||
})?;
|
||||
|
||||
Ok(())
|
||||
|
|
Loading…
Reference in a new issue