Parcourir la source

Remove redundant WSAStartup

xtne6f il y a 5 ans
Parent
commit
0ab9c53458
1 fichiers modifiés avec 0 ajouts et 9 suppressions
  1. 0 9
      src/civetweb.c

+ 0 - 9
src/civetweb.c

@@ -19228,10 +19228,6 @@ mg_stop(struct mg_context *ctx)
 
 
 	mg_join_thread(mt);
 	mg_join_thread(mt);
 	free_context(ctx);
 	free_context(ctx);
-
-#if defined(_WIN32)
-	(void)WSACleanup();
-#endif /* _WIN32 */
 }
 }
 
 
 
 
@@ -19331,11 +19327,6 @@ static
 
 
 	struct mg_workerTLS tls;
 	struct mg_workerTLS tls;
 
 
-#if defined(_WIN32)
-	WSADATA data;
-	WSAStartup(MAKEWORD(2, 2), &data);
-#endif /* _WIN32  */
-
 	if (error != NULL) {
 	if (error != NULL) {
 		error->code = 0;
 		error->code = 0;
 		if (error->text_buffer_size > 0) {
 		if (error->text_buffer_size > 0) {