X-Git-Url: https://ecere.com/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=documentor%2Fsrc%2FDocumentor.ec;h=3663100eb602c5efe7166ce4d94411127db7da18;hb=f40a4468171687e12070e65df9d76912deacd16a;hp=e0239764b69c4fe11f00d08cf1076b71933ab5a9;hpb=c8b136f311797436069da13a11ae244885713466;p=sdk diff --git a/documentor/src/Documentor.ec b/documentor/src/Documentor.ec index e023976..3663100 100644 --- a/documentor/src/Documentor.ec +++ b/documentor/src/Documentor.ec @@ -3736,11 +3736,14 @@ class Documentor : GuiApplication PrintLn("Exited"); console.Flush(); quit = true; - console.CloseInput(); - console.CloseOutput(); - app.Unlock(); - commandThread.Wait(); - app.Lock(); + if(commandThread.created) + { + console.CloseInput(); + console.CloseOutput(); + app.Unlock(); + commandThread.Wait(); + app.Lock(); + } FreeContext(globalContext); FreeExcludedSymbols(excludedSymbols);