Changeset 1867

Show
Ignore:
Timestamp:
07/11/10 16:36:26 (14 years ago)
Author:
jwoithe
Message:

Address a potential false error report from IsoHandlerManager::stopHandlers() when called from the IsoHandlerManager? destructor after a user shutdown.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libffado/src/libieee1394/IsoHandlerManager.cpp

    r1859 r1867  
    18421842{ 
    18431843    if (m_State == eHS_Stopped) { 
    1844         debugError("Disable requested on disabled stream\n"); 
    1845         return false; 
     1844        // Don't treat this as an error condition because during a user 
     1845        // shutdown the stream would have been disabled by 
     1846        // stopHandlerForStream().  Therefore when requestDisable() is 
     1847        // subnsequently called by IsoHandlerManager::stopHandlers() in the 
     1848        // IsoHandlerManager destructor with the stream disabled the 
     1849        // condition is not an error. 
     1850        // 
     1851        // For now print a warning, but this might be removed in future if 
     1852        // the above framework remains in place. 
     1853        debugWarning("Disable requested on disabled stream\n"); 
     1854        return true; 
    18461855    } 
    18471856    if (m_State != eHS_Running) {