Index: /trunk/FACT++/src/dclient5.cc
===================================================================
--- /trunk/FACT++/src/dclient5.cc	(revision 10469)
+++ /trunk/FACT++/src/dclient5.cc	(revision 10470)
@@ -54,10 +54,10 @@
         // 125: Operation canceled
 
-        if (error && error!=bs::error_code(125, bs::system_category))
+        if (error && error!=ba::error::basic_errors::operation_aborted)
         {
             stringstream str;
 
             str << "HandleReadTimeout: " << error.message() << " (" << error << ")";// << endl;
-            if (error==bs::error_code(2, ba::error::misc_category))
+            if (error==bs::error::misc_errors::eof)
                 Warn(str); // Connection: EOF (closed by remote host)
             else
@@ -84,5 +84,5 @@
             // 107: Transport endpoint is not connected
             // 125: Operation canceled
-            if (error && error!=bs::error_code(107, bs::system_category))
+            if (error && error!=bs::basic_errors::not_connected)
             {
                 stringstream str;
@@ -90,5 +90,5 @@
                 Error(str);
             }
-            PostClose(error!=bs::error_code(125, bs::system_category));
+            PostClose(error!=ba::error::basic_errors::operation_aborted);
             return;
         }
