One copy per app: a second is refused and names the running process (X-03)

This commit is contained in:
ZacharyZhang-NY committed 2026-10-09 14:57:30 -04:00
1 parent 6bf5d6c7e6
commit 383a1ea467
10 files changed
+173 -1

No files matched your search

+4
View File
@@ -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:#}"));
}