Skip to content

Commit

Permalink
Default clean_session to true so ID does not need to be provided
Browse files Browse the repository at this point in the history
  • Loading branch information
mgdm committed Oct 4, 2013
1 parent 67aee03 commit 6ea5910
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mosquitto.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ PHP_METHOD(Mosquitto_Client, __construct)
mosquitto_client_object *object;
char *id = NULL;
int id_len = 0;
zend_bool clean_session = 0;
zend_bool clean_session = 1;

PHP_MOSQUITTO_ERROR_HANDLING();
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s!|b", &id, &id_len, &clean_session) == FAILURE) {
if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "|sb", &id, &id_len, &clean_session) == FAILURE) {
PHP_MOSQUITTO_RESTORE_ERRORS();
return;
}
Expand Down

0 comments on commit 6ea5910

Please sign in to comment.