Test fixes.

This commit is contained in:
Roger A. Light
2022-02-01 09:52:41 +00:00
parent c87148ac3e
commit 6f8ced5038
4 changed files with 20 additions and 13 deletions
+3 -1
View File
@@ -26,6 +26,7 @@ int main(int argc, char *argv[])
struct mosquittopp_test *mosq;
int port = atoi(argv[1]);
int rc;
mosqpp::lib_init();
@@ -34,7 +35,8 @@ int main(int argc, char *argv[])
mosq->connect("localhost", port, 5);
while(run == -1){
mosq->loop();
rc = mosq->loop();
if(rc) break;
}
delete mosq;