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
No known key found for this signature in database
GPG Key ID: F9ECDF22D7D28727

View File

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