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:
parent
2cc809be0c
commit
3d96f8f127
@ -304,10 +304,7 @@ static cell_t sm_CallStartFunction(IPluginContext *pContext, const cell_t *param
|
|||||||
HandleError err;
|
HandleError err;
|
||||||
IPlugin *pPlugin;
|
IPlugin *pPlugin;
|
||||||
|
|
||||||
if (s_CallStarted)
|
ResetCall();
|
||||||
{
|
|
||||||
return pContext->ThrowNativeError("Cannot start a call while one is already in progress");
|
|
||||||
}
|
|
||||||
|
|
||||||
hndl = static_cast<Handle_t>(params[1]);
|
hndl = static_cast<Handle_t>(params[1]);
|
||||||
|
|
||||||
@ -343,10 +340,7 @@ static cell_t sm_CallStartForward(IPluginContext *pContext, const cell_t *params
|
|||||||
HandleError err;
|
HandleError err;
|
||||||
IForward *pForward;
|
IForward *pForward;
|
||||||
|
|
||||||
if (s_CallStarted)
|
ResetCall();
|
||||||
{
|
|
||||||
return pContext->ThrowNativeError("Cannot start a call while one is already in progress");
|
|
||||||
}
|
|
||||||
|
|
||||||
hndl = static_cast<Handle_t>(params[1]);
|
hndl = static_cast<Handle_t>(params[1]);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user