--- smsdaemon/SmsDaemon.cpp 2008/06/16 12:21:30 95 +++ smsdaemon/SmsDaemon.cpp 2008/12/06 14:06:17 125 @@ -19,7 +19,6 @@ using namespace std; - void SmsDaemon::CreateLogMessage(SMS& sms,bool hasPlugin) { ostringstream os; @@ -79,12 +78,17 @@ mainContinue = true; + int loopcount = 0; while (mainContinue) { + if (loopcount > 100 ) + { + CheckSms(); - CheckSms(); + cmn->GetTaskManager()->ExecuteTasks(_modem); - cmn->GetTaskManager()->ExecuteTasks(_modem); + loopcount = 0; + } if (cmn->isDebug && kbhit()) break; @@ -104,7 +108,7 @@ cmn->logMessage("--------------------------------"); cmn->logMessage( VERSION ); - cmn->logMessage( SVNVER ); + cmn->logMessage( SVNVERSION ); cmn->GetTaskManager()->LoadTasks(); cmn->GetPluginManager()->LoadPlugins();