Show
Ignore:
Timestamp:
11/22/08 00:36:22 (17 years ago)
Author:
yumileroy
Message:

Merged commit 269 (5f0e38da128a).

Original author: gvcoman
Date: 2008-11-21 14:34:05-05:00

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/trinitycore/CliRunnable.cpp

    r272 r279  
    170170{ 
    171171    SendSysMessage(LANG_COMMAND_EXIT); 
    172     World::m_stopEvent = true; 
     172    World::StopNow(SHUTDOWN_EXIT_CODE); 
    173173    return true; 
    174174} 
     
    311311 
    312312    ///- 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()) 
    314314    { 
    315315        fflush(stdout); 
    316316        #ifdef linux 
    317         while (!kb_hit_return() && !World::m_stopEvent) 
     317        while (!kb_hit_return() && !World::IsStopped()) 
    318318            // With this, we limit CLI to 10commands/second 
    319319            usleep(100); 
    320         if (World::m_stopEvent) 
     320        if (World::IsStopped()) 
    321321            break; 
    322322        #endif 
     
    349349        else if (feof(stdin)) 
    350350        { 
    351             World::m_stopEvent = true; 
     351            World::StopNow(SHUTDOWN_EXIT_CODE); 
    352352        } 
    353353    }