Changeset 272 for trunk/src/trinitycore/CliRunnable.cpp
- Timestamp:
- 11/22/08 00:35:41 (17 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/trinitycore/CliRunnable.cpp
r260 r272 170 170 { 171 171 SendSysMessage(LANG_COMMAND_EXIT); 172 World:: StopNow(SHUTDOWN_EXIT_CODE);172 World::m_stopEvent = true; 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:: IsStopped())313 while (!World::m_stopEvent) 314 314 { 315 315 fflush(stdout); 316 316 #ifdef linux 317 while (!kb_hit_return() && !World:: IsStopped())317 while (!kb_hit_return() && !World::m_stopEvent) 318 318 // With this, we limit CLI to 10commands/second 319 319 usleep(100); 320 if (World:: IsStopped())320 if (World::m_stopEvent) 321 321 break; 322 322 #endif … … 349 349 else if (feof(stdin)) 350 350 { 351 World:: StopNow(SHUTDOWN_EXIT_CODE);351 World::m_stopEvent = true; 352 352 } 353 353 }