sip 监听失败时主动结束程序

This commit is contained in:
shikong 2023-10-03 13:55:05 +08:00
parent d9ab07f1ef
commit d3bf7b4056

View File

@ -156,7 +156,7 @@ public class SipServiceImpl implements SipService {
} }
} catch (Exception e){ } catch (Exception e){
log.error("[sip] {}:{} 监听失败, 请检查端口是否被占用, 错误信息 => {}",ip,port, e.getMessage()); log.error("[sip] {}:{} 监听失败, 请检查端口是否被占用, 错误信息 => {}",ip,port, e.getMessage());
Runtime.getRuntime().exit(-1);
} }
} }
} }