It would be a good idea to actually start the server

This commit is contained in:
[object Object]
2022-12-28 12:29:17 -08:00
parent b561351a2a
commit bd9f81f1f0

View File

@@ -217,12 +217,13 @@ impl Server {
None => info!(target: "lazymc", "Starting server..."), None => info!(target: "lazymc", "Starting server..."),
} }
// Spawn server in new task // TODO add config option for this
// TODO uncomment this and add config option if let Some(pid) = *server.pid.lock().await {
//Self::spawn_server_task(config, server); return os::unfreeze(pid);
// TODO actual error handling }
os::unfreeze((*server.pid.lock().await).unwrap());
// Spawn server in new task
Self::spawn_server_task(config, server);
true true
} }