mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 21:02:17 +02:00
Remove ES restart after restore
This commit is contained in:
parent
b76e1b9750
commit
57410e4f1c
1 changed files with 0 additions and 9 deletions
|
@ -16,7 +16,6 @@
|
|||
#include <quazip5/quazip.h>
|
||||
#include <quazip5/quazipfile.h>
|
||||
|
||||
#include <LimitedNodeList.h>
|
||||
#include <OctreeUtils.h>
|
||||
|
||||
EntitiesBackupHandler::EntitiesBackupHandler(QString entitiesFilePath, QString entitiesReplacementFilePath) :
|
||||
|
@ -72,13 +71,5 @@ void EntitiesBackupHandler::recoverBackup(QuaZip& zip) {
|
|||
|
||||
if (entitiesFile.open(QIODevice::WriteOnly)) {
|
||||
entitiesFile.write(data.toGzippedByteArray());
|
||||
entitiesFile.close();
|
||||
|
||||
auto nodeList = DependencyManager::get<LimitedNodeList>();
|
||||
nodeList->eachMatchingNode([](const SharedNodePointer& otherNode) -> bool {
|
||||
return otherNode->getType() == NodeType::EntityServer;
|
||||
}, [nodeList](const SharedNodePointer& otherNode) {
|
||||
QMetaObject::invokeMethod(nodeList.data(), "killNodeWithUUID", Q_ARG(const QUuid&, otherNode->getUUID()));
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue