fixed amb1763 - clear function call status on a new call

--HG--
extra : convert_revision : svn%3A39bc706e-5318-0410-9160-8a85361fbb7c/trunk%402361
This commit is contained in:
David Anderson 2008-07-06 00:02:11 +00:00
parent 2cc809be0c
commit 3d96f8f127

View File

@ -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<Handle_t>(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<Handle_t>(params[1]);