[gnome-boxes] Some cleanup from review
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-boxes] Some cleanup from review
- Date: Tue, 8 May 2012 12:28:56 +0000 (UTC)
commit 261833362bc5193e7a7a93d2639108cda79f8bc7
Author: Alexander Larsson <alexl redhat com>
Date: Tue May 8 14:28:31 2012 +0200
Some cleanup from review
src/util.vala | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/util.vala b/src/util.vala
index 7b2cfc3..89d8757 100644
--- a/src/util.vala
+++ b/src/util.vala
@@ -439,7 +439,7 @@ namespace Boxes {
public delegate void RunInThreadFunc () throws GLib.Error;
public async void run_in_thread (RunInThreadFunc func) throws GLib.Error {
GLib.Error e = null;
- GLib.g_io_scheduler_push_job ( (job, cancellable) => {
+ GLib.g_io_scheduler_push_job ((job, cancellable) => {
try {
func ();
} catch (GLib.Error err) {
@@ -451,7 +451,9 @@ namespace Boxes {
});
return false;
});
+
yield;
+
if (e != null)
throw e;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]