mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-04-18 22:51:26 +03:00
fix frontend channel buffer size
This commit is contained in:
@@ -34,7 +34,12 @@ pub fn run() -> glib::ExitCode {
|
|||||||
#[cfg(not(windows))]
|
#[cfg(not(windows))]
|
||||||
let ret = gtk_main();
|
let ret = gtk_main();
|
||||||
|
|
||||||
log::debug!("frontend exited");
|
if ret == glib::ExitCode::FAILURE {
|
||||||
|
log::error!("frontend exited with failure");
|
||||||
|
} else {
|
||||||
|
log::info!("frontend exited successfully");
|
||||||
|
}
|
||||||
|
|
||||||
ret
|
ret
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -110,7 +110,7 @@ impl Server {
|
|||||||
};
|
};
|
||||||
let (mut consumer, mut producer) = tokio::join!(consumer::create(), producer::create());
|
let (mut consumer, mut producer) = tokio::join!(consumer::create(), producer::create());
|
||||||
|
|
||||||
let (frontend_tx, mut frontend_rx) = tokio::sync::mpsc::channel(1);
|
let (frontend_tx, mut frontend_rx) = tokio::sync::mpsc::channel(32);
|
||||||
let (producer_notify_tx, mut producer_notify_rx) = tokio::sync::mpsc::channel(32);
|
let (producer_notify_tx, mut producer_notify_rx) = tokio::sync::mpsc::channel(32);
|
||||||
let (consumer_notify_tx, mut consumer_notify_rx) = tokio::sync::mpsc::channel(32);
|
let (consumer_notify_tx, mut consumer_notify_rx) = tokio::sync::mpsc::channel(32);
|
||||||
let (resolve_tx, mut resolve_rx) = tokio::sync::mpsc::channel(32);
|
let (resolve_tx, mut resolve_rx) = tokio::sync::mpsc::channel(32);
|
||||||
|
|||||||
Reference in New Issue
Block a user