Assert positive port
This commit is contained in:
parent
bbad0a0a70
commit
d7100d42fd
1 changed files with 0 additions and 1 deletions
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue