path: root/usbredirserver/usbredirserver.c
diff options
authorHans de Goede <>2011-06-08 12:42:32 +0200
committerHans de Goede <>2011-06-08 12:42:32 +0200
commit69b7dc82b5b5310e907628a7957e76df1f6335f3 (patch)
tree0443e04e0761d907cc19a3096d12aa963914f357 /usbredirserver/usbredirserver.c
parent7cf1ee98e9b9e10d641bf76bf4334a66eb3aa7b3 (diff)
Silence cancel urb errors during iso stream cancel
When cancelling an active iso stream some iso packets will likely complete while we are cancelling, but we will see them as uncomplete as long as we've not asked libusb to check for complete transfers, this is inherently racy and there is nothing we can do. Thus we will sometimes try to cancel already completed transfers which will fail. This is not a problem, but libusb spews ugly error messages to stderr when this happens. This patch silences these error messages.
Diffstat (limited to 'usbredirserver/usbredirserver.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/usbredirserver/usbredirserver.c b/usbredirserver/usbredirserver.c
index 67a9bf0..2733748 100644
--- a/usbredirserver/usbredirserver.c
+++ b/usbredirserver/usbredirserver.c
@@ -333,7 +333,7 @@ int main(int argc, char *argv[])
- host = usbredirhost_open(handle, usbredirserver_log,
+ host = usbredirhost_open(ctx, handle, usbredirserver_log,
usbredirserver_read, usbredirserver_write,
NULL, VERSION, verbose);
if (!host)