X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=GitRepo.vala;h=21cf4de4f52001c238ef28ea8c67f4a3eb91a0f8;hb=01af28a18150e1c30fd20ef32da736c7ceee80ef;hp=107e968a02cb1a27791be823bd55b930680c07d4;hpb=bdf738da9a00cce5a1c0196e9c78f65538c8a6dc;p=gitlive diff --git a/GitRepo.vala b/GitRepo.vala index 107e968a..21cf4de4 100644 --- a/GitRepo.vala +++ b/GitRepo.vala @@ -989,7 +989,7 @@ public class GitRepo : Object return true; }; - new Thread("thread-new-gitpull", run); + new Thread("thread-new-gitpull-" + this.name, run); yield; @@ -998,7 +998,7 @@ public class GitRepo : Object public static void updateAllAsync(string after) { - var done = 0; + var doing = new Gee.HashMap();; @@ -1014,21 +1014,15 @@ public class GitRepo : Object repo.doUpdate.begin((obj, res) => { repo.doUpdate.end(res); doing.set(repo.name, false); - done++; - GLib.debug("total %d ?= done %d", update_all_total, done); - - if (update_all_total - done < 10) { - foreach(var b in doing.keys) { - if (doing.get(b)) { - GLib.debug("pending: %s", b); - } + + foreach(var b in doing.keys) { + if (doing.get(b)) { + GLib.debug("pending: %s", b); + return; } - - } - - if (update_all_total != done) { - return; } + + switch (after) { case "show_clones": Clones.singleton().show();