fix: increase channel size for display service

This commit is contained in:
Ashley Wulber 2024-11-20 16:04:15 -05:00 committed by Michael Murphy
parent 3263b6d355
commit 355c27caa8
3 changed files with 3 additions and 13 deletions

4
Cargo.lock generated
View file

@ -4009,9 +4009,9 @@ dependencies = [
[[package]]
name = "itoa"
version = "1.0.12"
version = "1.0.13"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "7a73e9fe3c49d7afb2ace819fa181a287ce54a0983eda4e0eb05c22f82ffe534"
checksum = "540654e97a3f4470a492cd30ff187bc95d89557a903a2bbf112e2fae98104ef2"
[[package]]
name = "jni"

View file

@ -789,16 +789,6 @@ impl cosmic::Application for SettingsApp {
.dialog(self.active_page)
.map(|e| e.map(Message::PageMessage))
}
fn on_close_requested(&self, id: window::Id) -> Option<Self::Message> {
if id == self.core.main_window_id().unwrap() {
std::thread::spawn(|| {
std::thread::sleep(Duration::from_millis(100));
std::process::exit(0);
});
}
None
}
}
impl SettingsApp {

View file

@ -249,7 +249,7 @@ impl page::Page<crate::pages::Message> for Page {
let runtime = tokio::runtime::Handle::current();
self.background_service = Some(tokio::task::spawn_blocking(move || {
runtime.block_on(async move {
let (tx, mut rx) = tachyonix::channel(5);
let (tx, mut rx) = tachyonix::channel(200);
let Ok((mut context, mut event_queue)) = cosmic_randr::connect(tx) else {
return;
};