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

@ -130,13 +130,12 @@ class TeamSpeakPlugin implements CallbackListener, CommandListener, ManialinkPag
*/
public function unload() {
$this->serverData = array();
$this->lastRequest = null;
$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);
}
/**