equal
deleted
inserted
replaced
1051 JNU_ThrowByName(env, "java/net/SocketException", "Socket closed"); |
1051 JNU_ThrowByName(env, "java/net/SocketException", "Socket closed"); |
1052 return; |
1052 return; |
1053 } else { |
1053 } else { |
1054 fd = (*env)->GetIntField(env, fdObj, IO_fd_fdID); |
1054 fd = (*env)->GetIntField(env, fdObj, IO_fd_fdID); |
1055 /* Bug 4086704 - If the Socket associated with this file descriptor |
1055 /* Bug 4086704 - If the Socket associated with this file descriptor |
1056 * was closed (sysCloseFD), the the file descriptor is set to -1. |
1056 * was closed (sysCloseFD), the file descriptor is set to -1. |
1057 */ |
1057 */ |
1058 if (fd == -1) { |
1058 if (fd == -1) { |
1059 JNU_ThrowByName(env, "java/net/SocketException", "Socket closed"); |
1059 JNU_ThrowByName(env, "java/net/SocketException", "Socket closed"); |
1060 return; |
1060 return; |
1061 } |
1061 } |