mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-22 16:15:05 +08:00
Test fixes.
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user