remove unregisterListener that isn't needed anymore

This commit is contained in:
Stephen Birarda 2015-07-17 11:20:05 -07:00
parent 7a13c867ae
commit 1c98c5e02c

View file

@ -194,9 +194,6 @@ void Agent::run() {
void Agent::aboutToFinish() {
_scriptEngine.stop();
auto& packetReceiver = DependencyManager::get<NodeList>()->getPacketReceiver();
packetReceiver.unregisterListener(DependencyManager::get<AvatarHashMap>().data());
// our entity tree is going to go away so tell that to the EntityScriptingInterface
DependencyManager::get<EntityScriptingInterface>()->setEntityTree(NULL);
}