My Raspberry Pi loses connections

If the PI is running for a longer period of time, it is possible that the connections will decrease.
To solve this problem, close the wallet.
and then use the following commands in the Terminal

sudo apt update

sudo apt upgrade

sudo reboot

And the connections will be restored.