diff options
author | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-13 14:53:15 +0100 |
---|---|---|
committer | Jiri Moskovcak <jmoskovc@redhat.com> | 2010-01-13 14:53:15 +0100 |
commit | 4d57287e4f6d9ba62e65a59de3ed0fdd749fb7e6 (patch) | |
tree | 738b7cf6b7c7590451570af9c889d0f80dfb1205 /lib/Utils | |
parent | 38aed8f42c135b9a7b4b2785b877935d3746352b (diff) | |
download | abrt-4d57287e4f6d9ba62e65a59de3ed0fdd749fb7e6.tar.gz abrt-4d57287e4f6d9ba62e65a59de3ed0fdd749fb7e6.tar.xz abrt-4d57287e4f6d9ba62e65a59de3ed0fdd749fb7e6.zip |
remeove timeout when authorization is done
Diffstat (limited to 'lib/Utils')
-rw-r--r-- | lib/Utils/Polkit.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Utils/Polkit.cpp b/lib/Utils/Polkit.cpp index 8bd0eb6f..a7e4a5da 100644 --- a/lib/Utils/Polkit.cpp +++ b/lib/Utils/Polkit.cpp @@ -48,7 +48,7 @@ static PolkitResult do_check(PolkitSubject *subject, const char *action_id) authority = polkit_authority_get(); cancellable = g_cancellable_new(); - g_timeout_add(POLKIT_TIMEOUT * 1000, + guint cancel_timeout = g_timeout_add(POLKIT_TIMEOUT * 1000, (GSourceFunc) do_cancel, cancellable); @@ -60,7 +60,7 @@ static PolkitResult do_check(PolkitSubject *subject, const char *action_id) cancellable, &error); g_object_unref(authority); - + g_source_remove(cancel_timeout); if (error) { g_error_free(error); |