Skip to content

Commit

Permalink
Merge pull request #11 from redboltz/remove_redundant_if
Browse files Browse the repository at this point in the history
Removed a redundant #if check.
  • Loading branch information
redboltz committed Dec 23, 2015
2 parents c2f1849 + 80f2aa2 commit 9413b88
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions include/mqtt/client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -301,11 +301,7 @@ class client {
as::ip::tcp::resolver r(ios_);
as::ip::tcp::resolver::query q(host_, port_);
auto it = r.resolve(q);
#if defined(MQTT_NO_TLS)
socket_.reset(new Socket(ios_));
#else // defined(MQTT_NO_TLS)
setup_socket(socket_);
#endif // defined(MQTT_NO_TLS)
as::async_connect(
socket_->lowest_layer(), it,
[this]
Expand Down

0 comments on commit 9413b88

Please sign in to comment.