Quellcode durchsuchen

版本升级维护

yyqxiaoyin vor 5 Jahren
Ursprung
Commit
dbe173d26a

+ 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 {