public void Close() { if (_StatePassed || _luaState == null) { return; } _luaState.Close(); ObjectTranslatorPool.Instance.Remove(_luaState); _luaState = null; }
public void Close() { if (_StatePassed) { return; } if (luaState != null) { lock (translatorPoolLock) { luaState.Close(); ObjectTranslatorPool.Instance.Remove(luaState); luaState = null; } } }