project_files/HedgewarsMobile/Classes/MapPreviewButtonView.m
changeset 7248 0ee403b190b5
parent 6841 3633928a3188
child 8441 a00b0fa0dbd7
equal deleted inserted replaced
7246:7773a1c92e1b 7248:0ee403b190b5
    83         serverQuit = YES;
    83         serverQuit = YES;
    84     }
    84     }
    85 
    85 
    86     // launch the preview here so that we're sure the tcp channel is open
    86     // launch the preview here so that we're sure the tcp channel is open
    87     pthread_t thread_id;
    87     pthread_t thread_id;
    88     pthread_create(&thread_id, NULL, (void *)GenLandPreview, (void *)port);
    88     pthread_create(&thread_id, NULL, (void *(*)(void *))GenLandPreview, (void *)port);
    89     pthread_detach(thread_id);
    89     pthread_detach(thread_id);
    90 
    90 
    91     DLog(@"Waiting for a client on port %d", port);
    91     DLog(@"Waiting for a client on port %d", port);
    92     while (!serverQuit) {
    92     while (!serverQuit) {
    93         /* This check the sd if there is a pending connection.
    93         /* This check the sd if there is a pending connection.