mirror of
https://github.com/overte-org/overte.git
synced 2025-08-05 22:40:12 +02:00
use correct cleanup calls in OctreeServer destructor
This commit is contained in:
parent
aac01ee70d
commit
5b6c2531a4
1 changed files with 7 additions and 7 deletions
|
@ -81,18 +81,18 @@ OctreeServer::~OctreeServer() {
|
||||||
delete _jurisdictionSender;
|
delete _jurisdictionSender;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_voxelServerPacketProcessor) {
|
if (_octreeInboundPacketProcessor) {
|
||||||
_voxelServerPacketProcessor->terminate();
|
_octreeInboundPacketProcessor->terminate();
|
||||||
delete _voxelServerPacketProcessor;
|
delete _octreeInboundPacketProcessor;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_voxelPersistThread) {
|
if (_persistThread) {
|
||||||
_voxelPersistThread->terminate();
|
_persistThread->terminate();
|
||||||
delete _voxelPersistThread;
|
delete _persistThread;
|
||||||
}
|
}
|
||||||
|
|
||||||
// tell our NodeList we're done with notifications
|
// tell our NodeList we're done with notifications
|
||||||
NodeList::getInstance()->removeHook(&_nodeWatcher);
|
nodeList->removeHook(this);
|
||||||
|
|
||||||
delete _jurisdiction;
|
delete _jurisdiction;
|
||||||
_jurisdiction = NULL;
|
_jurisdiction = NULL;
|
||||||
|
|
Loading…
Reference in a new issue