History

fix bug that was deleting actions with 0 ttl. in js interface, action parameter 'lifetime' is now called 'ttl'

Seth Alves committed 11 years ago

Commit 8d0aaed1 parent 5cf936f9 files · +62 −34Browse files

Showing the changes to interface/src/InterfaceActionFactory.cpp (1 of 9 files). Show all

Unified · Split

interface/src/InterfaceActionFactory.cpp+2−1
@@ -66,7 +66,8 @@ EntityActionPointer InterfaceActionFactory::factoryBA(EntityItemPointer ownerEnt · 65 unmodified lines
6666 if (action) {
6767 action->deserialize(data);
6868 if (action->lifetimeIsOver()) {
69− qDebug() << "InterfaceActionFactory::factoryBA lifetimeIsOver during action creation";
69+ qDebug() << "InterfaceActionFactory::factoryBA lifetimeIsOver during action creation --"
70+ << action->getExpires() << "<" << usecTimestampNow();
7071 return nullptr;
7172 }
7273 }