From 3ad49ae5ebfadccb5a5c4b0942ed759f6bf0fd7b Mon Sep 17 00:00:00 2001 From: yunfeibai Date: Tue, 7 Mar 2017 11:52:26 -0800 Subject: [PATCH] Set logging unique id at initialization. This fixed a bug that the second log couldn't be stopped properly. --- examples/SharedMemory/PhysicsServerCommandProcessor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp index 26b56aee5..85fb1dd7a 100644 --- a/examples/SharedMemory/PhysicsServerCommandProcessor.cpp +++ b/examples/SharedMemory/PhysicsServerCommandProcessor.cpp @@ -454,6 +454,7 @@ struct MinitaurStateLogger : public InternalStateLogger m_logFileHandle(0), m_minitaurMultiBody(minitaurMultiBody) { + m_loggingUniqueId = loggingUniqueId; m_loggingType = STATE_LOGGING_MINITAUR; m_motorIdList.resize(motorIdList.size()); for (int m=0;m structNames;