Wifi Goes to Sleep when Audio Not Playing

I had and issue with the latest Volumio on Raspberry PI 3B+, wifi connection.

The Pi went off the network if it was left idle for and hour or more, e.g. overnight.

The only way to resolve the issue was to repower the PI.

I was able to solve this issue with this command:-

sudo iwconfig wlan0 power off