fixed unregister manialinkpageanswerslistener....

This commit is contained in:
kremsy
2014-01-19 00:09:15 +01:00
committed by Steffen Schröder
parent c5beeab0eb
commit 7b17f51606
5 changed files with 225 additions and 66 deletions

View File

@ -139,6 +139,8 @@ class CustomVotesPlugin implements CommandListener, CallbackListener, ManialinkP
$manialinkText = $emptyManialink->render()->saveXML();
$this->maniaControl->manialinkManager->sendManialink($manialinkText);
$this->maniaControl->commandManager->unregisterCommandListener($this);
$this->maniaControl->callbackManager->unregisterCallbackListener($this);
$this->maniaControl->manialinkManager->unregisterManialinkPageAnswerListener($this);
unset($this->maniaControl);
}