mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
Resolves issue with Tuner retaining released TunerChannels, preventing
the tuner from sourcing additional out-of-band channels.
This commit is contained in:
@@ -97,9 +97,13 @@ public class TunerChannel implements Comparable<TunerChannel>
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user