Changeset 11584 for trunk/FACT++/src


Ignore:
Timestamp:
07/25/11 13:02:52 (13 years ago)
Author:
tbretz
Message:
Fixed 'Connecting' status when thread is not running and sockdef!=0.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fadctrl.cc

    r11578 r11584  
    13831383            stat2[idx] = GetNumConnected(idx);
    13841384
    1385             if (IsConnecting(idx))
     1385            if (runs && IsConnecting(idx))
    13861386            {
    13871387                nconnecting2++;
     
    13981398        // ===== Send connection status via dim =====
    13991399
    1400         if (fStatus1!=stat1 || fStatus2!=stat2 || fStatusT!=IsThreadRunning())
     1400        if (fStatus1!=stat1 || fStatus2!=stat2 || fStatusT!=runs)
    14011401        {
    14021402            fStatus1 = stat1;
    14031403            fStatus2 = stat2;
    14041404            fStatusT = runs;
    1405             UpdateConnectionStatus(stat1, stat2, IsThreadRunning());
     1405            UpdateConnectionStatus(stat1, stat2, runs);
    14061406        }
    14071407
     
    14521452
    14531453        // nconnected1 == nconnected2 == 0
    1454         return IsThreadRunning() ? FAD::kDisconnected : FAD::kOffline;
     1454        return runs ? FAD::kDisconnected : FAD::kOffline;
    14551455    }
    14561456
Note: See TracChangeset for help on using the changeset viewer.