Ejemplo n.º 1
0
        public void StopThread(ScriptThread thread)
        {
            ScriptThread actionThread = ((NativeObject)thread.GetObjectParameter(0)).Object as ScriptThread;

            if (actionThread == null)
            {
                DebugLogger.WriteLog((thread.Process.Url != null && thread.Process.Url != "" ? thread.Process.Url : "A script") + " called StopThread with an invalid object.", LogAlertLevel.Error);
                return;
            }
            actionThread.Stop();
        }