Permalink
Browse files

In script or batchmode - bail out of mothur

  • Loading branch information...
1 parent 53d2600 commit 6f2cf2e620f799975f168c49a55cc43ef456628a @mothur-westcott mothur-westcott committed Aug 10, 2016
Showing with 4 additions and 2 deletions.
  1. +4 −2 source/engine.cpp
View
@@ -257,7 +257,8 @@ bool BatchEngine::getInput(){
//if we aborted command
if (quitCommandCalled == 2) { mout->mothurOut("[ERROR]: did not complete " + commandName + ".\n"); }
-
+
+ if (mout->control_pressed) { break; }
mout->control_pressed = 0;
mout->executing = false;
@@ -391,7 +392,8 @@ bool ScriptEngine::getInput(){
//if we aborted command
if (quitCommandCalled == 2) { mout->mothurOut("[ERROR]: did not complete " + commandName + ".\n"); }
-
+
+ if (mout->control_pressed) { break; }
mout->control_pressed = 0;
mout->executing = false;

0 comments on commit 6f2cf2e

Please sign in to comment.