X-Git-Url: http://winboard.nl/cgi-bin?p=polyglot.git;a=blobdiff_plain;f=mainloop.cpp;h=0bb378c72a320c0fe11c329c6f2e32c88270e43b;hp=ffef0c9cb335e322067d59cd680cd2ea69ac3bd8;hb=92a5061fe11dab6ef0bb339cbe7798e6ccb35626;hpb=07265afaa167049a447b4c5f43e5ef90c7451a49 diff --git a/mainloop.cpp b/mainloop.cpp index ffef0c9..0bb378c 100644 --- a/mainloop.cpp +++ b/mainloop.cpp @@ -84,7 +84,12 @@ void mainloop() { } mainloop_wait_for_event(); } - my_log("POLYGLOT *** EOF file received from engine ***\n"); + my_log("POLYGLOT *** Mainloop has ended ***\n"); + // This should be handled better. + engine_close(Engine); + my_log("POLYGLOT Calling exit\n"); + exit(EXIT_SUCCESS); + }