Skip to content

Commit

Permalink
Emit connection error when the socket emits error
Browse files Browse the repository at this point in the history
  • Loading branch information
jhanssen committed Mar 13, 2015
1 parent 0f81bb0 commit fbc1021
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rct/Connection.h
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ class Connection : public std::enable_shared_from_this<Connection>
void onSocketError(const SocketClient::SharedPtr&, SocketClient::Error error)
{
::warning() << "Socket error" << error << errno << Rct::strerror();
mError(this);
mDisconnected(this);
}
void checkData();
Expand Down

0 comments on commit fbc1021

Please sign in to comment.