Fixed detection of hotplug
Merge pull request #104 from litghost/fix_hotplug_check

Fixed detection of hotplug