mirror of
https://github.com/Zedfrigg/ironbar.git
synced 2025-07-01 18:51:04 +02:00
fix(script): spawning outside of tokio runtime causing crash
Fixes #408.
This commit is contained in:
parent
e0dc5e104a
commit
963f8edc45
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
use crate::send_async;
|
use crate::{send_async, spawn};
|
||||||
use color_eyre::eyre::WrapErr;
|
use color_eyre::eyre::WrapErr;
|
||||||
use color_eyre::{Report, Result};
|
use color_eyre::{Report, Result};
|
||||||
use serde::Deserialize;
|
use serde::Deserialize;
|
||||||
|
@ -7,9 +7,9 @@ use std::fmt::{Display, Formatter};
|
||||||
use std::process::Stdio;
|
use std::process::Stdio;
|
||||||
use tokio::io::{AsyncBufReadExt, BufReader};
|
use tokio::io::{AsyncBufReadExt, BufReader};
|
||||||
use tokio::process::Command;
|
use tokio::process::Command;
|
||||||
|
use tokio::select;
|
||||||
use tokio::sync::mpsc;
|
use tokio::sync::mpsc;
|
||||||
use tokio::time::sleep;
|
use tokio::time::sleep;
|
||||||
use tokio::{select, spawn};
|
|
||||||
use tracing::{debug, error, trace, warn};
|
use tracing::{debug, error, trace, warn};
|
||||||
|
|
||||||
#[derive(Debug, Deserialize, Clone)]
|
#[derive(Debug, Deserialize, Clone)]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue