Explorar o código

Don't use deprecated dispatch_get_current_queue()

Pierre-Olivier Latour %!s(int64=11) %!d(string=hai) anos
pai
achega
965e111280
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      CGDWebServer/GCDWebServerConnection.m

+ 1 - 1
CGDWebServer/GCDWebServerConnection.m

@@ -193,7 +193,7 @@ static dispatch_queue_t _formatterQueue = NULL;
 #if !__has_feature(objc_arc)
   [data retain];
 #endif
-  dispatch_data_t buffer = dispatch_data_create(data.bytes, data.length, dispatch_get_current_queue(), ^{
+  dispatch_data_t buffer = dispatch_data_create(data.bytes, data.length, dispatch_get_main_queue(), ^{
 #if __has_feature(objc_arc)
     [data self];  // Keeps ARC from releasing data too early
 #else