This pull request fixes a bug that caused panic when trying to subtract the last character from an empty string. This could happen if there was a lost connection and the returned string was empty. I experienced this when running rups for a longer period of time on Wi-Fi.
I verified the fix by simulating packet loss with nftables on Linux.
This pull request fixes a bug that caused panic when trying to subtract the last character from an empty string. This could happen if there was a lost connection and the returned string was empty. I experienced this when running
rups
for a longer period of time on Wi-Fi.I verified the fix by simulating packet loss with
nftables
on Linux.