cleanup ts unload

This commit is contained in:
kremsy 2014-01-27 20:51:07 +01:00 committed by Steffen Schröder
parent 56f13f9660
commit e5c06cf359

View File

@ -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);
}
/**