project_files/HedgewarsMobile/Classes/EngineProtocolNetwork.m
changeset 6263 ec41637ceb64
parent 6247 6dfad55fd71c
child 6265 a6944f94c19f
equal deleted inserted replaced
6262:32a032f1b178 6263:ec41637ceb64
   412     // Close the client socket
   412     // Close the client socket
   413     SDLNet_TCP_Close(csd);
   413     SDLNet_TCP_Close(csd);
   414     SDLNet_Quit();
   414     SDLNet_Quit();
   415 
   415 
   416     [pool release];
   416     [pool release];
       
   417 
       
   418     [self performSelectorOnMainThread:@selector(release) withObject:nil waitUntilDone:YES];
   417     // Invoking this method should be avoided as it does not give your thread a chance
   419     // Invoking this method should be avoided as it does not give your thread a chance
   418     // to clean up any resources it allocated during its execution.
   420     // to clean up any resources it allocated during its execution.
   419     //[NSThread exit];
   421     //[NSThread exit];
   420 }
   422 }
   421 
   423