Browse Source

增加延时

peng 2 years ago
parent
commit
4c8f4f6616
1 changed files with 1 additions and 1 deletions
  1. 1 1
      controller/index.py

+ 1 - 1
controller/index.py

@@ -392,7 +392,7 @@ class oa2RtspStartView(TemplateView):
             logger.info('------------国外发送推流指令---------------')
             try:
                 back = subprocess.Popen(command, shell=True, stdout=subprocess.PIPE, stderr=subprocess.PIPE). \
-                    communicate(timeout=2)
+                    communicate(timeout=10)
                 logger.info('back: {}'.format(str(back[0].decode()) + str(back[1].decode())))
             except Exception as e:
                 self.runSendRtspMsg(logger, 'CN', command)  # 调用失败时尝试用国内的发送