mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 08:37:25 -05:00
#2055 MultiFrequencyTunerChannelSource Null Pointer Error On Channel Source Shutdown - different solution to resolve possible memory leak with previous solution. Also fixes P25 issue where a traffic channel that doesn't get started is returned to the traffic channel pool. (#2070)
Co-authored-by: Dennis Sheirer <dsheirer@github.com>
This commit is contained in:
@@ -1086,6 +1086,18 @@ public class P25TrafficChannelManager extends TrafficChannelManager implements I
|
||||
startChannelRequest.addPreloadDataContent(new P25FrequencyBandPreloadDataContent(mFrequencyBandMap.values()));
|
||||
getInterModuleEventBus().post(startChannelRequest);
|
||||
}
|
||||
else
|
||||
{
|
||||
//Return the channel to the traffic channel pool since we didn't start it.
|
||||
if(mManagedPhase1TrafficChannels.contains(trafficChannel))
|
||||
{
|
||||
mAvailablePhase1TrafficChannelQueue.add(trafficChannel);
|
||||
}
|
||||
else if(mManagedPhase2TrafficChannels.contains(trafficChannel))
|
||||
{
|
||||
mAvailablePhase2TrafficChannelQueue.add(trafficChannel);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user