Fix clean session for reconnecting clients.
This commit is contained in:
parent
fe5dba5887
commit
0fb064e0b4
@ -175,6 +175,7 @@ int mqtt3_handle_connect(struct mosquitto_db *db, struct mosquitto *context)
|
||||
goto handle_connect_error;
|
||||
}
|
||||
clean_session = (connect_flags & 0x02) >> 1;
|
||||
context->clean_session = clean_session;
|
||||
will = connect_flags & 0x04;
|
||||
will_qos = (connect_flags & 0x18) >> 3;
|
||||
if(will_qos == 3){
|
||||
|
Loading…
Reference in New Issue
Block a user