Fixed timeout code, using explicit cast ENGINE-187
authorEdouard Tisserant <edouard@pep-project.org>
Fri, 21 Apr 2017 15:40:27 +0200
branchENGINE-187
changeset 2463b4c910af3be
parent 245 ffcbcf8934a1
child 247 3bb810d630bf
child 248 e55fc51ec0f9
Fixed timeout code, using explicit cast
CpEpEngine.cpp
     1.1 --- a/CpEpEngine.cpp	Fri Apr 21 10:50:29 2017 +0200
     1.2 +++ b/CpEpEngine.cpp	Fri Apr 21 15:40:27 2017 +0200
     1.3 @@ -1284,8 +1284,7 @@
     1.4  
     1.5                  if (now < end_time) 
     1.6                  {
     1.7 -                    std::chrono::seconds remaining = end_time - now;
     1.8 -                    *timeout = remaining.count();
     1.9 +                    *timeout = std::chrono::duration_cast<std::chrono::seconds>(end_time - now).count();
    1.10                  } 
    1.11                  else 
    1.12                  {