diff --git a/src/botball_c.cpp b/src/botball_c.cpp index 750b7e7..0e1e847 100644 --- a/src/botball_c.cpp +++ b/src/botball_c.cpp @@ -17,7 +17,6 @@ class ShutDownIn : public Thread ShutDownIn(double s) : m_s(s) { - atexit(&halt); } ~ShutDownIn() @@ -30,7 +29,7 @@ class ShutDownIn : public Thread msleep(m_s * 1000.0); const double end = seconds(); std::cout << std::endl << "Shutdown after " << (end - start) << " seconds" << std::endl; - exit(0); + _Exit(0); } private: