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..."),
|
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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user