mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-16 10:37:49 +08:00
[1078] 优化netty bytebuf释放
This commit is contained in:
parent
045c14da0d
commit
79ee116174
@ -83,7 +83,6 @@ public class Jt808Decoder extends ByteToMessageDecoder {
|
||||
}
|
||||
|
||||
Rs decode = handler.decode(buf, header, session, service);
|
||||
buf.release();
|
||||
ApplicationEvent applicationEvent = handler.getEvent();
|
||||
if (applicationEvent != null) {
|
||||
applicationEventPublisher.publishEvent(applicationEvent);
|
||||
|
||||
@ -28,6 +28,7 @@ public abstract class Re {
|
||||
session.register(header.getPhoneNumber(), (int) header.getVersion(), header);
|
||||
}
|
||||
Rs rs = decode0(buf, header, session);
|
||||
buf.release();
|
||||
Rs rsHand = handler(header, session, service);
|
||||
if (rs == null && rsHand != null) {
|
||||
rs = rsHand;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user