diff options
author | xiota | 2024-04-05 06:57:42 +0000 |
---|---|---|
committer | xiota | 2024-04-05 06:57:42 +0000 |
commit | 94740884fcea523a27cab680ad4b3ae012f3a9b4 (patch) | |
tree | 574f0f0f915ea9ed15ebf7bef7e32536d5a974c6 /fix-60-sec-delay.patch | |
parent | ba0191cd1a486c57f8135b2cf5e1a14d0a6d5c0e (diff) | |
download | aur-xboxdrv.tar.gz |
0.8.9
Diffstat (limited to 'fix-60-sec-delay.patch')
-rw-r--r-- | fix-60-sec-delay.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/fix-60-sec-delay.patch b/fix-60-sec-delay.patch deleted file mode 100644 index da543d2cfa01..000000000000 --- a/fix-60-sec-delay.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 7326421eeaadbc2aeb3828628c2e65bb7be323a9 Mon Sep 17 00:00:00 2001 -From: buxit <buti@bux.at> -Date: Wed, 2 Nov 2016 16:25:14 +0100 -Subject: [PATCH] fix 60 seconds delay - -use `libusb_handle_events_timeout_completed()` instead of `libusb_handle_events()` -should fix #144 ---- - src/usb_gsource.cpp | 5 ++++- - 1 file changed, 4 insertions(+), 1 deletion(-) - -diff --git a/src/usb_gsource.cpp b/src/usb_gsource.cpp -index 00bf1315..afb38f65 100644 ---- a/src/usb_gsource.cpp -+++ b/src/usb_gsource.cpp -@@ -174,7 +174,10 @@ USBGSource::on_source_dispatch(GSource* source, GSourceFunc callback, gpointer u - gboolean - USBGSource::on_source() - { -- libusb_handle_events(NULL); -+ struct timeval to; -+ to.tv_sec = 0; -+ to.tv_usec = 0; -+ libusb_handle_events_timeout_completed(NULL, &to, NULL); - return TRUE; - } - |