From: Maxim Mamontov <faust.madf@gmail.com>
Date: Fri, 16 Sep 2011 17:45:17 +0000 (+0300)
Subject: Return correct core if stop fails
X-Git-Tag: 2.408-rc1~34
X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/bee1318e72d01e37085e44d9c100926419b3c7ca?ds=sidebyside

Return correct core if stop fails
---

diff --git a/projects/stargazer/plugin_runner.cpp b/projects/stargazer/plugin_runner.cpp
index 0bf159b8..3083352c 100644
--- a/projects/stargazer/plugin_runner.cpp
+++ b/projects/stargazer/plugin_runner.cpp
@@ -178,9 +178,7 @@ if (!plugin)
     return -1;
     }
 
-plugin->Stop();
-
-return 0;
+return plugin->Stop();
 }
 //-----------------------------------------------------------------------------
 int PLUGIN_RUNNER::Reload()