mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-14 17:47:32 -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
|
@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;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user