Remove mosquitto__set_state after error from send__connect in mosquitto__reconnect to

fix failing test test/lib/02-subscribe-qos1.py $@/02-subscribe-qos1-async2.test

Signed-off-by: Norbert Heusser <norbert.heusser@cedalo.com>
pull/2529/head
Norbert Heusser 3 years ago
parent 306b76d7f6
commit 6150ae6560

@ -230,7 +230,6 @@ static int mosquitto__reconnect(struct mosquitto *mosq, bool blocking)
if(rc){
packet__cleanup_all(mosq);
net__socket_close(mosq);
mosquitto__set_state(mosq, mosq_cs_new);
}
}
return rc;

@ -39,7 +39,7 @@ c : test-compile
./02-subscribe-qos0.py $@/02-subscribe-qos0.test
./02-subscribe-qos1.py $@/02-subscribe-qos1.test
./02-subscribe-qos1.py $@/02-subscribe-qos1-async1.test
# ./02-subscribe-qos1.py $@/02-subscribe-qos1-async2.test
./02-subscribe-qos1.py $@/02-subscribe-qos1-async2.test
./02-subscribe-qos2.py $@/02-subscribe-qos2.test
./02-unsubscribe-multiple-v5.py $@/02-unsubscribe-multiple-v5.test
./02-unsubscribe-v5.py $@/02-unsubscribe-v5.test

@ -14,7 +14,6 @@ import atexit
vg_index = 1
vg_logfiles = []
class TestError(Exception):
def __init__(self, message="Mismatched packets"):
self.message = message

Loading…
Cancel
Save