Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Commit

Permalink
Revert "Fixes TCPAcceptor able to use an empty string (#172)"
Browse files Browse the repository at this point in the history
This doesn't actually do anything since the outer if statement checks
for empty m_address already.

This reverts commit 6ad9f45.
  • Loading branch information
PeterJohnson committed Dec 26, 2016
1 parent 6ad9f45 commit b5b0899
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wpiutil/src/tcpsockets/TCPAcceptor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ int TCPAcceptor::start() {
#else
int res = inet_pton(PF_INET, m_address.c_str(), &(address.sin_addr));
#endif
if (res != 1 && !m_address.empty()) {
if (res != 1) {
WPI_ERROR(m_logger, "could not resolve " << m_address << " address");
return -1;
}
Expand Down

0 comments on commit b5b0899

Please sign in to comment.