Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bugfix: fix 2 bugs with connection deletion code
- Connections are unique for the 3-uple (user, device, conneciton) IDs. The code was only checking (user, device). This means we would delete ALL connections for a device, is ANY connection expired. - ...except we wouldn't, because of the 2nd bug, which is the deletion code itself. This is missing `i--` so we will not do an ID check on the element after a deleted index. Both of these issues have now been fixed.
- Loading branch information