GitMonitor.vala
authorAlan Knowles <alan@roojs.com>
Thu, 1 Nov 2018 13:12:59 +0000 (21:12 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 1 Nov 2018 13:12:59 +0000 (21:12 +0800)
GitMonitor.vala

index 7be1ab5..71857b6 100644 (file)
@@ -26,12 +26,8 @@ public class GitMonitor : Monitor
        
                this.queue = new Array<GitMonitorQueue>();
                GitMonitor.gitmonitor = this;
        
                this.queue = new Array<GitMonitorQueue>();
                GitMonitor.gitmonitor = this;
-               
-
-               
                Timeout.add_full(Priority.LOW, 500, () => {
                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);
                        //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 +50,6 @@ public class GitMonitor : Monitor
                        return true; //
                });
                
                        return true; //
                });
                
-               
        }
 
        public new void pauseError(string failure) 
        }
 
        public new void pauseError(string failure) 
@@ -258,7 +253,7 @@ public class GitMonitor : Monitor
                
                        var ix  = GitRepo.indexOf(repo_list,  cmd.gitpath);
                        if (ix < 0) {
                
                        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);
                                ix = GitRepo.indexOf(repo_list,  cmd.gitpath);
                        }
                        GLib.debug("GitMonitor.runQueue - adding to repolist %d", ix);