Skip to content

Commit

Permalink
Fix starting order
Browse files Browse the repository at this point in the history
  • Loading branch information
bergie committed Sep 8, 2020
1 parent 68d8832 commit d583810
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,6 @@ class BaseTransport extends EventEmitter {
this.options.defaultGraph.baseDir = this.options.baseDir;
const graphName = this.getGraphName(this.options.defaultGraph);
this.context = 'none';
this.graph.registerGraph(graphName, this.options.defaultGraph);
this.runtime.setMainGraph(graphName, this.options.defaultGraph);
this.network._startNetwork(
this.options.defaultGraph,
graphName,
Expand All @@ -93,6 +91,8 @@ class BaseTransport extends EventEmitter {
this.emit('error', err);
return;
}
this.graph.registerGraph(graphName, this.options.defaultGraph, false);
this.runtime.setMainGraph(graphName, this.options.defaultGraph);
this.emit('ready', network);
},
);
Expand Down

0 comments on commit d583810

Please sign in to comment.