ide/Debugger: (#1031) Fixed crash on exit introduced by db47d1bdebf0680741ec1c5916352...
authorJerome St-Louis <jerome@ecere.com>
Thu, 20 Feb 2014 07:50:30 +0000 (02:50 -0500)
committerJerome St-Louis <jerome@ecere.com>
Thu, 20 Feb 2014 07:50:30 +0000 (02:50 -0500)
ide/src/debugger/Debugger.ec

index 8b85410..918be5a 100644 (file)
@@ -2536,9 +2536,10 @@ class Debugger
             gdbThread.Wait();
             app.Lock();
          }
-         if(vgLogThread)
-         {
+         if(vgLogFile)
             vgLogFile.CloseInput();
+         if(vgLogThread.created)
+         {
             app.Unlock();
             vgLogThread.Wait();
             app.Lock();