瀏覽代碼

版本升级维护

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);
     });