Skip to content

Commit

Permalink
[maven][javafx] Remove the returned addresses from the spawning funct…
Browse files Browse the repository at this point in the history
…ions.

Signed-off-by: Stéphane Galland <galland@arakhne.org>
  • Loading branch information
gallandarakhneorg committed Mar 8, 2020
1 parent 1c0439c commit e5b335f
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,9 @@ abstract class FxViewerController implements EventListener {
*
* @param agentType the type of the agent to launch.
* @param whenAgentLaunched the lambda that is called when the agent is really launched.
* @return the identifier of the launched agent.
*/
def startAgentApplication(agentType : Class<? extends Agent>,
whenAgentLaunched : () => void) : UUID {
whenAgentLaunched : () => void) {
var bootstrap = SRE::bootstrap
if (!bootstrap.active) {
throw new IllegalStateException(Messages::FxViewerController_0)
Expand All @@ -116,7 +115,7 @@ abstract class FxViewerController implements EventListener {
this.globalSpace = context.defaultSpace as OpenEventSpace
this.UISpace = context.createSpace(typeof(OpenEventSpaceSpecification), ID)
new LaunchingCallback(ID, this.globalSpace, whenAgentLaunched)
return bootstrap.startAgent(agentType, this)
bootstrap.startAgent(agentType, this)
}

/** Catch exit event from JavaFX. Stop the agents and the JavaFX user interface.
Expand Down

0 comments on commit e5b335f

Please sign in to comment.