Commit 705343d1 authored by Pavel Vainerman's avatar Pavel Vainerman

minor optimization in SharedMemory

parent db0848d8
......@@ -214,8 +214,10 @@ void SharedMemory::sysCommand( SystemMessage *sm )
UniSetTypes::uniset_mutex_lock l(mutex_start, 10000);
askTimer(tmHeartBeatCheck,heartbeatCheckTime);
askTimer(tmEvent,evntPause,1);
if( histSaveTime > 0 )
if( histSaveTime > 0 && !hist.empty() )
askTimer(tmHistory,histSaveTime);
if( msecPulsar > 0 )
askTimer(tmPulsar,msecPulsar);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment