소스 검색

minor change

Vladyslav Hrytsenko 6 년 전
부모
커밋
7c9af9de92
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      test/build.c

+ 4 - 0
test/build.c

@@ -75,6 +75,10 @@ int main() {
         enet_address_set_host(&address, "127.0.0.1");
         clients[i].host = enet_host_create(NULL, 1, 2, 0, 0);
         clients[i].peer = enet_host_connect(clients[i].host, &address, 2, 0);
+        if (clients[i].peer == NULL) {
+            printf("coundlnt connect\n");
+            return 1;
+        }
     }
 
     // program will make N iterations, and then exit