mirror of
https://github.com/schoebel/mars
synced 2025-02-21 14:56:55 +00:00
server: forcibly shutdown main sockets on rmmod
This commit is contained in:
parent
26311c611c
commit
eb7710dec3
@ -1201,6 +1201,12 @@ void exit_mars_server(void)
|
||||
MARS_INF("exit_server()\n");
|
||||
server_unregister_brick_type();
|
||||
|
||||
for (i = 0; i < MARS_TRAFFIC_MAX; i++) {
|
||||
struct mars_socket *server_socket = &server_cookie[i].server_socket;
|
||||
|
||||
mars_shutdown_socket(server_socket);
|
||||
}
|
||||
|
||||
for (i = 0; i < MARS_TRAFFIC_MAX; i++) {
|
||||
if (server_thread[i]) {
|
||||
MARS_INF("stopping server thread %d...\n", i);
|
||||
|
Loading…
Reference in New Issue
Block a user