chenjunkai преди 5 години
родител
ревизия
72a94e3dd0
променени са 1 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 3 3
      controller/index.py

+ 3 - 3
controller/index.py

@@ -141,9 +141,9 @@ class oa2RtspStartView(TemplateView):
         UID = request_dict.get("UID", '')
         PWD = request_dict.get("PWD", '')
         MSG = request_dict.get("MSG", '')
-        # po = Pool(10)
-        # po.apply_async(runSendRtspMsg, (UID, PWD, MSG))
-        self.runSendRtspMsg(UID, PWD, MSG)
+        po = Pool(10)
+        po.apply_async(self.runSendRtspMsg, (UID, PWD, MSG))
+        # self.runSendRtspMsg(UID, PWD, MSG)
         response = ResObject()
         return response.json(0, {'res': 'yes'})