mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-14 08:15:02 -05:00
[web] Fix possible invalid read during shutdown
The player may emit a listener event when shutting down, and since websockets didn't remove it's listener callback it would receive an event despite being deinitialized. This would lead to an invalid read by lws_cancel_service in listener_cb().
This commit is contained in:
parent
c28d108b96
commit
e03120c944
@ -429,6 +429,8 @@ websocket(void *arg)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
listener_remove(listener_cb);
|
||||||
|
|
||||||
pthread_exit(NULL);
|
pthread_exit(NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user