Fixes exit(0) with hostable webcore (#966)

This commit is contained in:
Justin Kotalik 2018-06-22 15:29:28 -07:00 committed by GitHub
parent 9d1ffa2d06
commit 32121abde3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 1 deletions

View File

@ -243,7 +243,13 @@ IN_PROCESS_APPLICATION::Recycle(
// Try to graceful shutdown the managed application
// and call exit to terminate current process
ShutDown();
exit(0);
// If we set a static callback, we don't want to kill the current process as
// that will kill the test process and means we are running in hostable webcore mode.
if (s_fMainCallback == NULL)
{
exit(0);
}
}
}