From abb31ffe8d5f970d81ef14c11004fc9d51c1e3a9 Mon Sep 17 00:00:00 2001 From: "Roger A. Light" Date: Tue, 14 Jul 2020 17:27:57 +0100 Subject: [PATCH] Fix broker refusing to start if only websockets listeners were defined. Closes #1740. Thanks to OkenKhuman. --- ChangeLog.txt | 2 ++ src/mosquitto.c | 4 ---- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ChangeLog.txt b/ChangeLog.txt index 0fc175bb..cf1ac6d2 100644 --- a/ChangeLog.txt +++ b/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. diff --git a/src/mosquitto.c b/src/mosquitto.c index 98861248..fdde843b 100644 --- a/src/mosquitto.c +++ b/src/mosquitto.c @@ -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;