فهرست منبع

版本升级维护

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