diff options
author | Richard Hughes <richard@hughsie.com> | 2016-03-11 08:22:44 +0000 |
---|---|---|
committer | Richard Hughes <richard@hughsie.com> | 2016-03-11 08:22:44 +0000 |
commit | 24be58187a5e6cb9a85b529aa5d5170757bc8b68 (patch) | |
tree | 1a8a6e9fcc4f493f484c6aea5e2c0659b536c8cd /gusb | |
parent | 558e2e6dfb10ee9660a53fc844a05e31e5c55559 (diff) | |
download | gusb-24be58187a5e6cb9a85b529aa5d5170757bc8b68.tar.gz |
trivial: Use the defined main context when waiting for replug
Diffstat (limited to 'gusb')
-rw-r--r-- | gusb/gusb-context.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gusb/gusb-context.c b/gusb/gusb-context.c index 1333c8a..eaad2c9 100644 --- a/gusb/gusb-context.c +++ b/gusb/gusb-context.c @@ -1026,7 +1026,7 @@ g_usb_context_wait_for_replug (GUsbContext *context, /* create a helper */ replug_helper = g_new0 (GUsbContextReplugHelper, 1); replug_helper->device = g_object_ref (device); - replug_helper->loop = g_main_loop_new (NULL, FALSE); + replug_helper->loop = g_main_loop_new (priv->main_ctx, FALSE); replug_helper->timeout_id = g_timeout_add (timeout_ms, g_usb_context_replug_timeout_cb, replug_helper); |