修复点播错误时关闭rtpserver

This commit is contained in:
648540858
2024-04-09 14:53:11 +08:00
parent 6dd870e74c
commit ab318fcf70
8 changed files with 16 additions and 22 deletions

View File

@@ -45,7 +45,7 @@ public class ZLMMediaNodeServerService implements IMediaNodeServerService {
@Override
public void closeRtpServer(MediaServer mediaServer, String streamId) {
zlmresTfulUtils.closeStreams(mediaServer, "rtp", streamId);
zlmServerFactory.closeRtpServer(mediaServer, streamId);
}
@Override

View File

@@ -104,8 +104,6 @@ public class ZLMRESTfulUtils {
responseJSON = JSON.parseObject(responseStr);
}
}else {
System.out.println( 2222);
System.out.println( response.code());
response.close();
Objects.requireNonNull(response.body()).close();
}