Ignore:
Timestamp:
09/05/11 16:24:40 (13 years ago)
Author:
tbretz
Message:
Fixed two wrong conditional checks if there was an error or not.
File:
1 edited

Legend:

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

    r11921 r11963  
    6767    {
    6868        ostringstream str;
    69         str << "Connection closed to " << URL() << ".";
     69        str << "Closing connection to " << URL() << ".";
    7070        Info(str);
    7171    }
     
    7474    bs::error_code ec;
    7575    cancel(ec);
    76     if (!ec)
     76    if (ec)
    7777        Error("Cancel async requests on "+URL()+": "+ec.message());
    7878
     
    8080    {
    8181        close(ec);
    82         if (!ec)
     82        if (ec)
    8383            Error("Closing "+URL()+": "+ec.message());
    8484    }
     
    248248
    249249    ostringstream msg;
    250     msg << "Connecting to " << URL() << "...";
     250    msg << "Connecting to " << URL() << "... ";
    251251    if (ec)
    252252        msg << " " << ec.message() << " (" << ec << ")";
Note: See TracChangeset for help on using the changeset viewer.