X-Git-Url: http://git.roojs.org/?a=blobdiff_plain;f=GitMonitor.vala;h=420ab12e79d72ccdfaaa71cc6de3eda529704173;hb=6ba3985908498235b2ef11df2681d4072293da64;hp=7be1ab566b10c6209eb795b653e7186a1ed581f1;hpb=687788b547e87d4c8f915e175d8896ae7ffdbd47;p=gitlive diff --git a/GitMonitor.vala b/GitMonitor.vala index 7be1ab56..420ab12e 100644 --- a/GitMonitor.vala +++ b/GitMonitor.vala @@ -20,18 +20,13 @@ public class GitMonitor : Monitor - public GitMonitor () { - - + public GitMonitor () + { this.queue = new Array(); GitMonitor.gitmonitor = this; - - - - Timeout.add_full(Priority.LOW, 500, () => { - + //GLib.debug("TIMEOUT queue length = %d, is_runing = %s\n", (int)this.queue.length , this.queueRunning ? "Y" : "N"); //stdout.printf("QL %u: QR: %d\n", this.queue.length, this.queueRunning ? 1 : 0); @@ -54,7 +49,6 @@ public class GitMonitor : Monitor return true; // }); - } public new void pauseError(string failure) @@ -258,7 +252,7 @@ public class GitMonitor : Monitor var ix = GitRepo.indexOf(repo_list, cmd.gitpath); if (ix < 0) { - repo_list.append_val(new GitRepo( gitpath )); + repo_list.append_val( GitRepo.get( gitpath )); ix = GitRepo.indexOf(repo_list, cmd.gitpath); } GLib.debug("GitMonitor.runQueue - adding to repolist %d", ix);