Git.vala
authorAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 08:11:49 +0000 (16:11 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 20 Mar 2019 08:11:49 +0000 (16:11 +0800)
Git.vala

index 91aeb66..d630e53 100644 (file)
--- a/Git.vala
+++ b/Git.vala
@@ -303,7 +303,7 @@ namespace  GitLive {
                        ThreadFunc<bool> run = () => {
                                
                                if (!force && this.remote_heads != null) {
-                                       return;
+                                       return true;;
                                }
                                var r = this.repo.lookup_remote("origin");
                                r.connect(Ggit.Direction.FETCH, this.callbacks, null, null);
@@ -322,9 +322,11 @@ namespace  GitLive {
                                                );
                                }
                                Idle.add((owned) callback);
+                               return true;;
                        };
                        new Thread<bool>("thread-example", run);
                        yield;
+                       
 
                }