Skip to content

Commit

Permalink
Fix broker refusing to start if only websockets listeners were defined.
Browse files Browse the repository at this point in the history
Closes #1740. Thanks to OkenKhuman.
  • Loading branch information
ralight committed Jul 14, 2020
1 parent 5481575 commit abb31ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.txt
@@ -1,5 +1,7 @@
Broker:
- Fix usage message only mentioning v3.1.1. Closes #1713.
- Fix broker refusing to start if only websockets listeners were defined.
Closes #1740.

Client library:
- Improved documentation around connect callback return codes. Close #1730.
Expand Down
4 changes: 0 additions & 4 deletions src/mosquitto.c
Expand Up @@ -333,10 +333,6 @@ int main(int argc, char *argv[])
#endif
}
}
if(listensock == NULL){
log__printf(NULL, MOSQ_LOG_ERR, "Error: Unable to start any listening sockets, exiting.");
return 1;
}

rc = drop_privileges(&config, false);
if(rc != MOSQ_ERR_SUCCESS) return rc;
Expand Down

0 comments on commit abb31ff

Please sign in to comment.