It would be a good idea to actually start the server
This commit is contained in:
parent
b561351a2a
commit
bd9f81f1f0
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user