Prevents the browser from locking on shutdown if the browser ran into a startup error.
This commit is contained in:
@@ -69,6 +69,7 @@ public class Browser extends MessageRunner
|
||||
logger.error(scanner.nextLine());
|
||||
}
|
||||
}
|
||||
notifyAllInstance();
|
||||
throw new IOException("Error in browser launch (exit code " + startExit + ")");
|
||||
}
|
||||
}
|
||||
@@ -157,6 +158,14 @@ public class Browser extends MessageRunner
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
public void stop()
|
||||
{
|
||||
this.running = false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method for launching a browser instance
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user