mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-20 18:06:14 -05:00
Move calls to thread_setname() into the thread start routines and move to a single argument thread_setname()
This commit is contained in:
@@ -415,6 +415,7 @@ static struct lws_protocols protocols[] =
|
||||
static void *
|
||||
websocket(void *arg)
|
||||
{
|
||||
thread_setname("websocket");
|
||||
listener_add(listener_cb, LISTENER_UPDATE | LISTENER_DATABASE | LISTENER_PAIRING | LISTENER_SPOTIFY | LISTENER_LASTFM | LISTENER_SPEAKER
|
||||
| LISTENER_PLAYER | LISTENER_OPTIONS | LISTENER_VOLUME | LISTENER_QUEUE, NULL);
|
||||
|
||||
@@ -533,8 +534,6 @@ websocket_init(void)
|
||||
return -1;
|
||||
}
|
||||
|
||||
thread_setname(tid_websocket, "websocket");
|
||||
|
||||
websocket_is_initialized = true;
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user