diff --git a/core/smn_functions.cpp b/core/smn_functions.cpp index 2f6f68c5..6feb6e49 100644 --- a/core/smn_functions.cpp +++ b/core/smn_functions.cpp @@ -304,10 +304,7 @@ static cell_t sm_CallStartFunction(IPluginContext *pContext, const cell_t *param HandleError err; IPlugin *pPlugin; - if (s_CallStarted) - { - return pContext->ThrowNativeError("Cannot start a call while one is already in progress"); - } + ResetCall(); hndl = static_cast(params[1]); @@ -343,10 +340,7 @@ static cell_t sm_CallStartForward(IPluginContext *pContext, const cell_t *params HandleError err; IForward *pForward; - if (s_CallStarted) - { - return pContext->ThrowNativeError("Cannot start a call while one is already in progress"); - } + ResetCall(); hndl = static_cast(params[1]);