Пример #1
0
void Shutdown()
{
	StopScanThread();
	if (s_libusb_hotplug_enabled)
		libusb_hotplug_deregister_callback(s_libusb_context, s_hotplug_handle);
	Reset();

	if (s_libusb_context)
	{
		libusb_exit(s_libusb_context);
		s_libusb_context = nullptr;
	}

	s_libusb_driver_not_supported = false;
}
Пример #2
0
void Shutdown()
{
  StopScanThread();
  Reset();
}