mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-25 19:34:16 +08:00
Close spare sock at exit.
This commit is contained in:
+1
-1
@@ -432,7 +432,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
config__cleanup(int_db.config);
|
||||
net__cleanup();
|
||||
net__broker_cleanup();
|
||||
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -515,6 +515,7 @@ int send__suback(struct mosquitto *context, uint16_t mid, uint32_t payloadlen, c
|
||||
* Network functions
|
||||
* ============================================================ */
|
||||
void net__broker_init(void);
|
||||
void net__broker_cleanup(void);
|
||||
int net__socket_accept(struct mosquitto_db *db, mosq_sock_t listensock);
|
||||
int net__socket_listen(struct mosquitto__listener *listener);
|
||||
int net__socket_get_address(mosq_sock_t sock, char *buf, int len);
|
||||
|
||||
Reference in New Issue
Block a user