Skip to content

Commit

Permalink
Shell is now initialized in a separate thread
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Aug 21, 2015
1 parent a78593e commit 6546b97
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,17 @@ public void startupDefaultShell(@Observes @Local PostStartup startup) throws Exc
}
else if (Boolean.getBoolean("forge.standalone"))
{
Settings settings = new SettingsBuilder().create();
this.shell = shellFactory.createShell(OperatingSystemUtils.getWorkingDir(), settings);
// Starting the shell in a separate thread
// TODO: Remove when asynchronous events are supported
new Thread()
{
@Override
public void run()
{
Settings settings = new SettingsBuilder().create();
ShellInitializer.this.shell = shellFactory.createShell(OperatingSystemUtils.getWorkingDir(), settings);
}
}.start();
}
}

Expand Down

0 comments on commit 6546b97

Please sign in to comment.