소스 검색

版本升级维护

yyqxiaoyin 5 년 전
부모
커밋
0283722ab5
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 4 3
      MKRRadioManager/Classes/MKRRadioManager/MKRWIFIDeviceManager/MKRWIFIDeviceManager.m

+ 4 - 3
MKRRadioManager/Classes/MKRRadioManager/MKRWIFIDeviceManager/MKRWIFIDeviceManager.m

@@ -92,9 +92,10 @@ static inline void wd_playControl_queue(void (^block)(void)){
                          timeBlock:(void(^)(NSInteger time))timeBlock {
     wd_playControl_queue(^{
         if (_upnpErrorCode != 0) {
-            [self startUpnp];
-            [self checkBaseURL];
-            libupnp_BuildFilesList();
+            if ([self startUpnp] == 0) {
+                [self checkBaseURL];
+                libupnp_BuildFilesList();
+            }
         }
         libupnp_SearchDevice(20);
     });