gioerror: make WSAESHUTDOWN an alias of G_IO_ERROR_CONNECTION_CLOSED

This fixes one of the assertions of the socket unit tests where
G_IO_ERROR_FAILED was returned instead of G_IO_ERROR_CONNECTION_CLOSED.
This commit is contained in:
Ignacio Casal Quinteiro 2016-12-05 18:25:52 +01:00 committed by Ignacio Casal Quinteiro
parent 799f8dcd46
commit 4b98a79997

View File

@ -325,6 +325,7 @@ g_io_error_from_win32_error (gint error_code)
return G_IO_ERROR_NOT_SUPPORTED; return G_IO_ERROR_NOT_SUPPORTED;
case WSAECONNRESET: case WSAECONNRESET:
case WSAESHUTDOWN:
return G_IO_ERROR_CONNECTION_CLOSED; return G_IO_ERROR_CONNECTION_CLOSED;
case WSAEHOSTUNREACH: case WSAEHOSTUNREACH: