mirror of
https://github.com/overte-org/overte.git
synced 2025-04-16 23:26:25 +02:00
leverage invokeMethod to make sure killNodeWithUUID is called on right thread
This commit is contained in:
parent
106c8f9f22
commit
0c22aa241f
2 changed files with 3 additions and 2 deletions
|
@ -416,7 +416,7 @@ int DomainServer::civetwebRequestHandler(struct mg_connection *connection) {
|
|||
mg_printf(connection, "%s", RESPONSE_200);
|
||||
|
||||
// we have a valid UUID and node - kill the node that has this assignment
|
||||
NodeList::getInstance()->killNodeWithUUID(deleteUUID);
|
||||
QMetaObject::invokeMethod(NodeList::getInstance(), "killNodeWithUUID", Q_ARG(const QUuid&, deleteUUID));
|
||||
|
||||
// successfully processed request
|
||||
return 1;
|
||||
|
|
|
@ -95,7 +95,6 @@ public:
|
|||
int fillPingReplyPacket(unsigned char* pingBuffer, unsigned char* replyBuffer);
|
||||
void pingPublicAndLocalSocketsForInactiveNode(Node* node);
|
||||
|
||||
void killNodeWithUUID(const QUuid& nodeUUID);
|
||||
void sendKillNode(const char* nodeTypes, int numNodeTypes);
|
||||
|
||||
SharedNodePointer nodeWithAddress(const HifiSockAddr& senderSockAddr);
|
||||
|
@ -120,6 +119,8 @@ public slots:
|
|||
void sendDomainServerCheckIn();
|
||||
void pingInactiveNodes();
|
||||
void removeSilentNodes();
|
||||
|
||||
void killNodeWithUUID(const QUuid& nodeUUID);
|
||||
signals:
|
||||
void domainChanged(const QString& domainHostname);
|
||||
void nodeAdded(SharedNodePointer);
|
||||
|
|
Loading…
Reference in a new issue