diff --git a/src/source/tuner/TunerChannel.java b/src/source/tuner/TunerChannel.java index 7ff6e32d..625d7a98 100644 --- a/src/source/tuner/TunerChannel.java +++ b/src/source/tuner/TunerChannel.java @@ -97,9 +97,13 @@ public class TunerChannel implements Comparable } @Override - public int compareTo( TunerChannel otherLock ) + public int compareTo( TunerChannel otherTunerChannel ) { - if( mFrequency < otherLock.getFrequency() ) + if( this.equals( otherTunerChannel ) ) + { + return 0; + } + else if( mFrequency < otherTunerChannel.getFrequency() ) { return -1; }