Skip to content

Commit

Permalink
Fix clean_session error
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Dec 31, 2020
1 parent de6f4d9 commit a868744
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public function connect(bool $clean = true, array $will = [])
'type' => Types::CONNECT,
'protocol_name' => $this->config['protocol_name'],
'protocol_level' => (int) $this->config['protocol_level'],
'clean_session' => $clean ? 0 : 1,
'clean_session' => $clean,
'client_id' => $this->config['client_id'],
'keep_alive' => $this->config['keep_alive'],
'properties' => $this->config['properties'],
Expand Down

0 comments on commit a868744

Please sign in to comment.