Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Sosoyan authored and Sosoyan committed Sep 14, 2016
1 parent 4e8fe98 commit b6e38b0
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Driver_Aton.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,10 +147,12 @@ driver_open
long long rArea = data->xres * data->yres;

boost::system::error_code ec;
boost::asio::ip::address::from_string(extra_host, ec);
data->extraHost = false;
if (!ec) data->extraHost = true;
boost::asio::ip::address::from_string(host, ec);
data->host = ec ? false : true;

boost::asio::ip::address::from_string(extra_host, ec);
data->extraHost = ec ? false : true;

// Make image header & send to server
aton::Data header(data->xres, data->yres, 0, 0, 0, 0,
rArea, version, currentFrame, cam_fov, cam_matrix);
Expand Down

0 comments on commit b6e38b0

Please sign in to comment.