Pyradio server [error], address already in use

I got the following message with pyradio server.

Mabox_20230612-02-23-59

When i, for the first time, start Pyradio [localhost or lan] everything works fine with the server.

$ lsof -i4

COMMAND  PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pyradio 4534 vogel    4u  IPv4  35649      0t0  TCP localhost:distinct32 (LISTEN)
pyradio 4534 vogel    5u  IPv4  38000      0t0  TCP localhost:distinct32->localhost:55852 (CLOSE_WAIT)
mpv     4556 vogel   12u  IPv4  51360      0t0  TCP vogel-box:53424->streamer-london2.radio.co:http (ESTABLISHED)

But …

When i exit Pyradio. The server connection keeps running.

$ lsof -i4

COMMAND  PID  USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
pyradio 4534 vogel    4u  IPv4  35649      0t0  TCP localhost:distinct32 (LISTEN)
pyradio 4534 vogel    6u  IPv4  52493      0t0  TCP localhost:distinct32->localhost:48206 (CLOSE_WAIT)

When i restart Pyradio, i got the error message. Till i reboot.

:bird:

1 Like

I just saw this one…

Let me think about how we could even start to debug it…

Can you please check it this way?

Open pyradio as you normally would, use the remote control for a while and then press “q” to exit - instead of closing the window using the "X "(close) button?

Then, if you restart it, does it still have the same problem?

I hope version 0.9.2.9 (just released) fixes this issue :wink:

Thanks @sng,

After the update it looks its working. :penguin:

I use it for title log in tint2. And i don’t wan the title shown when on pause.
So i check server for Playback/idle.
I made a kill port script. But this is great work.

:bird:

1 Like