Assert positive port

This commit is contained in:
Brandon Rozek 2021-05-14 19:39:58 -04:00
parent bbad0a0a70
commit d7100d42fd

View file

@ -14,7 +14,6 @@ Client::~Client() {
} }
void Client::connect(QString hostname, int port) { void Client::connect(QString hostname, int port) {
assert (port > 0);
socket->connectToHost(hostname, port); socket->connectToHost(hostname, port);
socket->waitForConnected(); socket->waitForConnected();
std::cout << "Connected" << std::endl; std::cout << "Connected" << std::endl;