Changeset 260 for trunk/src/trinitycore/CliRunnable.cpp
- Timestamp:
- 11/21/08 08:47:55 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trinitycore/CliRunnable.cpp
r237 r260 170 170 { 171 171 SendSysMessage(LANG_COMMAND_EXIT); 172 World:: m_stopEvent = true;172 World::StopNow(SHUTDOWN_EXIT_CODE); 173 173 return true; 174 174 } … … 311 311 312 312 ///- As long as the World is running (no World::m_stopEvent), get the command line and handle it 313 while (!World:: m_stopEvent)313 while (!World::IsStopped()) 314 314 { 315 315 fflush(stdout); 316 316 #ifdef linux 317 while (!kb_hit_return() && !World:: m_stopEvent)317 while (!kb_hit_return() && !World::IsStopped()) 318 318 // With this, we limit CLI to 10commands/second 319 319 usleep(100); 320 if (World:: m_stopEvent)320 if (World::IsStopped()) 321 321 break; 322 322 #endif … … 349 349 else if (feof(stdin)) 350 350 { 351 World:: m_stopEvent = true;351 World::StopNow(SHUTDOWN_EXIT_CODE); 352 352 } 353 353 }