diff options
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r-- | src/testing/testing_api_loop.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index e0cb3fcda..3727d2543 100644 --- a/src/testing/testing_api_loop.c +++ b/src/testing/testing_api_loop.c | |||
@@ -313,8 +313,12 @@ interpreter_run (void *cls) | |||
313 | } | 313 | } |
314 | cmd->run (cmd->cls, | 314 | cmd->run (cmd->cls, |
315 | is); | 315 | is); |
316 | if ( (cmd->asynchronous_finish) && | 316 | if (NULL == cmd->ac) |
317 | (NULL != cmd->ac->cont) ) | 317 | { |
318 | interpreter_next (is); | ||
319 | } | ||
320 | else if ( (cmd->asynchronous_finish) && | ||
321 | (NULL != cmd->ac->cont) ) | ||
318 | { | 322 | { |
319 | cmd->ac->cont = NULL; | 323 | cmd->ac->cont = NULL; |
320 | interpreter_next (is); | 324 | interpreter_next (is); |