fix for closed connection.

This commit is contained in:
qicosmos
2019-07-01 11:04:09 +08:00
parent 985c4f6df1
commit 4eb0fab09b
+4
View File
@@ -70,6 +70,10 @@ namespace rest_rpc {
}
std::string remote_address() const {
if (has_closed_) {
return "";
}
return socket_.remote_endpoint().address().to_string();
}