mirror of
https://gitee.com/pan648540858/wvp-GB28181-pro.git
synced 2026-05-18 19:37:50 +08:00
Merge pull request #1647 from kairlec/master
修复当注销流时没有与之关联的国标通道时会出现的NPE
This commit is contained in:
commit
0127d712a3
@ -284,7 +284,10 @@ public class StreamPushServiceImpl implements IStreamPushService {
|
||||
}
|
||||
streamPush.setPushing(false);
|
||||
if (userSetting.isUsePushingAsStatus()) {
|
||||
gbChannelService.offline(streamPush.buildCommonGBChannel());
|
||||
CommonGBChannel commonGBChannel = streamPush.buildCommonGBChannel();
|
||||
if (commonGBChannel != null) {
|
||||
gbChannelService.offline(commonGBChannel);
|
||||
}
|
||||
}
|
||||
sendRtpServerService.deleteByStream(streamPush.getStream());
|
||||
mediaServerService.stopSendRtp(mediaServer, streamPush.getApp(), streamPush.getStream(), null);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user