1
0
Fork 0
mirror of https://github.com/Zedfrigg/ironbar.git synced 2025-04-19 19:34:24 +02:00

fix(script): spawning outside of tokio runtime causing crash

Fixes #408.
This commit is contained in:
Jake Stanger 2024-01-14 15:41:43 +00:00
parent e0dc5e104a
commit 963f8edc45
No known key found for this signature in database
GPG key ID: C51FC8F9CB0BEA61

View file

@ -1,4 +1,4 @@
use crate::send_async;
use crate::{send_async, spawn};
use color_eyre::eyre::WrapErr;
use color_eyre::{Report, Result};
use serde::Deserialize;
@ -7,9 +7,9 @@ use std::fmt::{Display, Formatter};
use std::process::Stdio;
use tokio::io::{AsyncBufReadExt, BufReader};
use tokio::process::Command;
use tokio::select;
use tokio::sync::mpsc;
use tokio::time::sleep;
use tokio::{select, spawn};
use tracing::{debug, error, trace, warn};
#[derive(Debug, Deserialize, Clone)]