fix: tokio tasks
This commit is contained in:
@@ -9,6 +9,7 @@ mod viewporter;
|
||||
mod vulkano_data;
|
||||
mod xdg;
|
||||
|
||||
use crate::BevyMaterial;
|
||||
use crate::core::error::ServerError;
|
||||
use crate::core::registry::OwnedRegistry;
|
||||
use crate::nodes::drawable::model::ModelNodeSystemSet;
|
||||
@@ -16,7 +17,6 @@ use crate::wayland::core::seat::SeatMessage;
|
||||
use crate::wayland::core::surface::Surface;
|
||||
use crate::wayland::presentation::MonotonicTimestamp;
|
||||
use crate::wayland::util::ClientExt;
|
||||
use crate::{BevyMaterial, core::task};
|
||||
use bevy::app::{App, Plugin, Update};
|
||||
use bevy::ecs::schedule::IntoScheduleConfigs;
|
||||
use bevy::ecs::system::{Local, Res, ResMut};
|
||||
@@ -361,8 +361,10 @@ impl Wayland {
|
||||
let listener = waynest_server::Listener::new_with_path(&socket_path)?;
|
||||
let _ = WAYLAND_DISPLAY.set(listener.socket_path().to_path_buf());
|
||||
|
||||
let abort_handle =
|
||||
task::new(|| "wayland loop", Self::handle_wayland_loop(listener))?.abort_handle();
|
||||
let abort_handle = tokio::task::Builder::new()
|
||||
.name("Wayland client accept loop")
|
||||
.spawn(Self::handle_wayland_loop(listener))?
|
||||
.abort_handle();
|
||||
|
||||
Ok(Self {
|
||||
_lockfile,
|
||||
|
||||
Reference in New Issue
Block a user