Commit 2290e1c1 authored by Björn Richerzhagen's avatar Björn Richerzhagen
Browse files

Fixed Traci-Shutdown

parent e184d776
......@@ -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