diff options
| author | Paul Buetow <paul@buetow.org> | 2008-05-31 04:02:24 +0000 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2008-05-31 04:02:24 +0000 |
| commit | ddac26dd4d1aafeaa714f2eb77cbfc7d244a053f (patch) | |
| tree | 9cc6d909fbff40db9484f6668c52b36fd03d8802 /sources/core/VSTask.java | |
| parent | f32bc24469d0e0d8e184c6a27fe04b13f59d6fb0 (diff) | |
bugfix!
Diffstat (limited to 'sources/core/VSTask.java')
| -rw-r--r-- | sources/core/VSTask.java | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/sources/core/VSTask.java b/sources/core/VSTask.java index c7b378d..1716f02 100644 --- a/sources/core/VSTask.java +++ b/sources/core/VSTask.java @@ -273,9 +273,11 @@ public class VSTask implements Comparable { else if (taskTime > task.getTaskTime()) return 1; + VSAbstractEvent event2 = task.getEvent(); + /* If it's a recovering, it should get handled very first */ boolean a = event instanceof VSProcessRecoverEvent; - boolean b = task.getEvent() instanceof VSProcessRecoverEvent; + boolean b = event2 instanceof VSProcessRecoverEvent; if (a && b) return 0; @@ -288,7 +290,7 @@ public class VSTask implements Comparable { /* If it's a crash, it should get handled second first */ a = event instanceof VSProcessCrashEvent; - b = task.getEvent() instanceof VSProcessCrashEvent; + b = event2 instanceof VSProcessCrashEvent; if (a && b) return 0; @@ -301,7 +303,7 @@ public class VSTask implements Comparable { /* If it's a VSProtocolEvent, it should get handled third */ a = event instanceof VSProtocolEvent; - b = task.getEvent() instanceof VSProtocolEvent; + b = event2 instanceof VSProtocolEvent; if (a && b) return 0; @@ -312,6 +314,7 @@ public class VSTask implements Comparable { if (b) return 1; + return event.getShortname().compareTo(event2.getShortname()); } return 0; |
