Fixed bug where a device could lock a session belonging to a device whose name began with the same string
Merge branch 'master' of https://github.com/obs619/thesis