Skip to content

Commit

Permalink
Merge pull request #2513 from Daedaluz/fixes
Browse files Browse the repository at this point in the history
Don't reuse topic alias after reconnect.
  • Loading branch information
ralight authored Apr 29, 2022
2 parents 3cdeb59 + a9a5ac2 commit d0d8f1a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/pub_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ void my_connect_callback(struct mosquitto *mosq, void *obj, int result, int flag
connack_result = result;

if(!result){
first_publish = true;
switch(cfg.pub_mode){
case MSGMODE_CMD:
case MSGMODE_FILE:
Expand Down

0 comments on commit d0d8f1a

Please sign in to comment.