mirror of
https://github.com/fairwaves/openbts-2.8.git
synced 2025-10-22 23:32:00 +00:00
Fixed CCCH serviceLoop().
We should use not blocking read from InterthreadQueue, because we should send idleFrame, when queue is empty.
This commit is contained in:
committed by
Alexander Chemeris
parent
37245fecbf
commit
9c5db80544
@@ -124,13 +124,13 @@ void CCCHLogicalChannel::serviceLoop()
|
||||
LogicalChannel::send(idleFrame);
|
||||
// run the loop
|
||||
while (true) {
|
||||
L3Frame* frame = mQ.read();
|
||||
L3Frame* frame = mQ.readNoBlock();
|
||||
if (frame) {
|
||||
LogicalChannel::send(*frame);
|
||||
OBJLOG(DEBUG) << "CCCHLogicalChannel::serviceLoop sending " << *frame;
|
||||
delete frame;
|
||||
}
|
||||
if (mQ.size()==0) {
|
||||
else {
|
||||
LogicalChannel::send(idleFrame);
|
||||
OBJLOG(DEBUG) << "CCCHLogicalChannel::serviceLoop sending idle frame";
|
||||
}
|
||||
|
Reference in New Issue
Block a user