Changeset 10824


Ignore:
Timestamp:
May 25, 2011, 4:27:17 PM (8 years ago)
Author:
tbretz
Message:
Handle operation_aborted in timeouts
Location:
trunk/FACT++/src
Files:
2 edited

Legend:

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

    r10821 r10824  
    206206    void HandleReadTimeout(const bs::error_code &error)
    207207    {
    208         if (error && error!=ba::error::basic_errors::operation_aborted)
     208        if (error==ba::error::basic_errors::operation_aborted)
     209            return;
     210
     211        if (error)
    209212        {
    210213            ostringstream str;
     
    223226            return;
    224227        }
    225 
    226         if (error==ba::error::basic_errors::operation_aborted)
    227             return;
    228228
    229229        // Check whether the deadline has passed. We compare the deadline
  • trunk/FACT++/src/ftmctrl.cc

    r10815 r10824  
    402402    void HandleReadTimeout(const bs::error_code &error)
    403403    {
    404         if (error && error!=ba::error::basic_errors::operation_aborted)
     404        if (error==ba::error::basic_errors::operation_aborted)
     405            return;
     406
     407        if (error)
    405408        {
    406409            ostringstream str;
     
    419422            return;
    420423        }
    421 
    422         if (error==ba::error::basic_errors::operation_aborted)
    423             return;
    424424
    425425        // Check whether the deadline has passed. We compare the deadline
Note: See TracChangeset for help on using the changeset viewer.