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 ...@@ -119,15 +119,7 @@ public class TraciSimulationController implements VehicleController, SimulationS
e.printStackTrace(); e.printStackTrace();
} }
Runnable shutdownHook = new Runnable() { Simulator.getInstance().addObserver(this);
@Override
public void run() {
_connection.close();
}
};
Runtime.getRuntime().addShutdownHook(new Thread(shutdownHook));
_initalized = true; _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