Commit ace6ae14 authored by Björn Richerzhagen's avatar Björn Richerzhagen Committed by Jose Ignacio Monreal Bailey
Browse files

Fixed Traci-Shutdown

parent 4be3ef1f
......@@ -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;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment