Skip to content

Commit

Permalink
Fix error return code
Browse files Browse the repository at this point in the history
  • Loading branch information
kaoskorobase committed May 18, 2012
1 parent 305d5ca commit cafb761
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion server/scsynth/SC_World.cpp
Expand Up @@ -703,14 +703,16 @@ SC_DLLEXPORT_C void World_NonRealTimeSynthesis(struct World *world, WorldOptions

SC_DLLEXPORT_C int World_WaitForQuit(struct World *inWorld)
{
int exitCode = 1;
int exitCode = 0;
try {
inWorld->hw->mQuitProgram->Acquire();
exitCode = inWorld->hw->mExitCode;
World_Cleanup(inWorld);
} catch (std::exception& exc) {
scprintf("Exception in World_WaitForQuit: %s\n", exc.what());
exitCode = 1;
} catch (...) {
exitCode = 1;
}
return exitCode;
}
Expand Down

0 comments on commit cafb761

Please sign in to comment.