From: David ‘Bombe’ Roden Date: Tue, 3 Jun 2008 06:50:21 +0000 (+0200) Subject: load nodes before projects X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=fcaa97bae5d6ca064d194900f8275701326950a4;p=jSite2.git load nodes before projects --- diff --git a/src/net/pterodactylus/jsite/core/CoreImpl.java b/src/net/pterodactylus/jsite/core/CoreImpl.java index 6628711..cd65bf4 100644 --- a/src/net/pterodactylus/jsite/core/CoreImpl.java +++ b/src/net/pterodactylus/jsite/core/CoreImpl.java @@ -397,17 +397,17 @@ public class CoreImpl implements Core, NodeListener, RequestListener { */ public void start() { try { - projectManager.load(); - fireLoadingProjectsDone(projectManager.getDirectory()); - } catch (IOException ioe1) { - fireLoadingProjectsFailed(projectManager.getDirectory(), ioe1); - } - try { nodeManager.load(); fireLoadingNodesDone(nodeManager.getDirectory()); } catch (IOException ioe1) { fireLoadingNodesFailed(nodeManager.getDirectory(), ioe1); } + try { + projectManager.load(); + fireLoadingProjectsDone(projectManager.getDirectory()); + } catch (IOException ioe1) { + fireLoadingProjectsFailed(projectManager.getDirectory(), ioe1); + } fireCoreLoaded(); }