Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simonstrator
PeerfactSim.KOM
Commits
2290e1c1
Commit
2290e1c1
authored
Sep 27, 2017
by
Björn Richerzhagen
Browse files
Fixed Traci-Shutdown
parent
e184d776
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/de/tud/kom/p2psim/impl/topology/movement/vehicular/sumo/simulation/controller/traci/TraciSimulationController.java
View file @
2290e1c1
...
...
@@ -119,15 +119,7 @@ public class TraciSimulationController implements VehicleController, SimulationS
e
.
printStackTrace
();
}
Runnable
shutdownHook
=
new
Runnable
()
{
@Override
public
void
run
()
{
_connection
.
close
();
}
};
Runtime
.
getRuntime
().
addShutdownHook
(
new
Thread
(
shutdownHook
));
Simulator
.
getInstance
().
addObserver
(
this
);
_initalized
=
true
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment