Skip to content

Commit

Permalink
GCAdapter: remove the hotplug callback on shutdown
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieui committed Apr 30, 2015
1 parent 62142a4 commit 7a44f2a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/Core/Core/HW/SI_GCAdapter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,8 @@ static void AddGCAdapter(libusb_device* device)
void Shutdown()
{
StopScanThread();
if (s_libusb_hotplug_enabled)
libusb_hotplug_deregister_callback(s_libusb_context, s_hotplug_handle);
Reset();

if (s_libusb_context)
Expand Down

0 comments on commit 7a44f2a

Please sign in to comment.