From e5c06cf3594e8fca717e9becbc6f9f4630cb98f7 Mon Sep 17 00:00:00 2001 From: kremsy Date: Mon, 27 Jan 2014 20:51:07 +0100 Subject: [PATCH] cleanup ts unload --- application/plugins/TeamSpeakPlugin.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/plugins/TeamSpeakPlugin.php b/application/plugins/TeamSpeakPlugin.php index 6b11280f..e366da82 100644 --- a/application/plugins/TeamSpeakPlugin.php +++ b/application/plugins/TeamSpeakPlugin.php @@ -129,14 +129,13 @@ class TeamSpeakPlugin implements CallbackListener, CommandListener, ManialinkPag * Unload the plugin and its resources */ public function unload() { - $this->serverData = array(); - $this->lastRequest = null; + $this->serverData = array(); $this->maniaControl->actionsMenu->removeMenuItem(1, true); $this->maniaControl->manialinkManager->unregisterManialinkPageAnswerListener($this); $this->maniaControl->callbackManager->unregisterCallbackListener($this); $this->maniaControl->commandManager->unregisterCommandListener($this); - $this->maniaControl = null; + unset($this->maniaControl); } /**