return true;
};
- new Thread<bool>("thread-new-gitpull-" this.repo.name, run);
+ new Thread<bool>("thread-new-gitpull-" + this.name, run);
yield;
public static void updateAllAsync(string after)
{
- var done = 0;
+
var doing = new Gee.HashMap<string,bool>();;
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();