One copy per app: a second is refused and names the running process (X-03)
This commit is contained in:
10 files changed
+173
-1
No files matched your search
@@ -15,6 +15,10 @@ pub fn run<V: Render>(
|
||||
app: AppId,
|
||||
root: impl FnOnce(AppId, &mut Window, &mut App) -> Entity<V> + 'static,
|
||||
) {
|
||||
// Before the log: a second copy must not trim it.
|
||||
if let Err(error) = ely_platform::instance::hold(app) {
|
||||
startup::fail(app, &format!("{error}"));
|
||||
}
|
||||
if let Err(error) = logging::init(app) {
|
||||
startup::fail(app, &format!("logging did not start: {error:#}"));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user