Fix broker refusing to start if only websockets listeners were defined.
Closes #1740. Thanks to OkenKhuman.
This commit is contained in:
parent
5481575f8b
commit
abb31ffe8d
@ -1,5 +1,7 @@
|
|||||||
Broker:
|
Broker:
|
||||||
- Fix usage message only mentioning v3.1.1. Closes #1713.
|
- 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:
|
Client library:
|
||||||
- Improved documentation around connect callback return codes. Close #1730.
|
- Improved documentation around connect callback return codes. Close #1730.
|
||||||
|
@ -333,10 +333,6 @@ int main(int argc, char *argv[])
|
|||||||
#endif
|
#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);
|
rc = drop_privileges(&config, false);
|
||||||
if(rc != MOSQ_ERR_SUCCESS) return rc;
|
if(rc != MOSQ_ERR_SUCCESS) return rc;
|
||||||
|
Loading…
Reference in New Issue
Block a user