[xiph-commits] r3088 - liboggplay/trunk/src/liboggplay

laser13 at svn.annodex.net laser13 at svn.annodex.net
Tue Jun 26 22:58:31 PDT 2007


Author: laser13
Date: 2007-06-26 22:58:31 -0700 (Tue, 26 Jun 2007)
New Revision: 3088

Modified:
   liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c
Log:
Actually that is even more appropriate for closing sockets on Win32.

Modified: liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c
===================================================================
--- liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c	2007-06-27 05:56:20 UTC (rev 3087)
+++ liboggplay/trunk/src/liboggplay/oggplay_tcp_reader.c	2007-06-27 05:58:31 UTC (rev 3088)
@@ -510,9 +510,13 @@
 
   if (!block && r <= 0) {
 #ifdef WIN32
-    closesocket(me->socket);    
+#ifdef HAVE_WINSOCK2
+    shutdown(me->socket, SD_BOTH);
+#endif
+    closesocket(me->socket);
+    WSACleanup();
 #else
-    close(me->socket);    
+    close(me->socket);
 #endif
     me->socket = INVALID_SOCKET;
   }



More information about the commits mailing list