From 3d96f8f1270d96bc592db889bf62bdbf16042421 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sun, 6 Jul 2008 00:02:11 +0000 Subject: [PATCH] fixed amb1763 - clear function call status on a new call --HG-- extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402361 --- core/smn_functions.cpp | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) 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]);