瀏覽代碼

版本升级维护

yyqxiaoyin 5 年之前
父節點
當前提交
dbe173d26a
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      MKRRadioManager/Classes/MKRRadioManager/MKRWIFIDeviceManager/MKRWIFIDeviceManager.m

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

@@ -547,7 +547,9 @@ static inline void wd_playControl_queue(void (^block)(void)){
 
 - (void)setChannelUpdate:(NSString *)channelFlag device:(id<MKRUPnPDevice>)device timeStamp:(NSTimeInterval)timeStamp{
     NSString *timestamp = [NSString stringWithFormat:@"%.0f", [[NSDate date] timeIntervalSince1970]];
-    libupnp_SetChannelUpdateV2(device.groupManagementUrl, self.userID, timestamp, channelFlag, @"null");
+    wd_playControl_queue(^{
+        libupnp_SetChannelUpdateV2(device.groupManagementUrl, self.userID, timestamp, channelFlag, @"null");
+    });
 }
 
 - (id <MKRRadioResorce>)getPlayingStatusWithDevice:(id <MKRUPnPDevice>)device {