added better network error message support.

This commit is contained in:
crs
2002-09-14 20:56:28 +00:00
parent 4586f88188
commit fec679cfe5
8 changed files with 155 additions and 54 deletions

View File

@@ -114,7 +114,7 @@ CTCPSocket::close()
// close socket
if (m_fd != CNetwork::Null) {
if (CNetwork::close(m_fd) == CNetwork::Error) {
throw XIOClose();
throw XSocketIOClose();
}
m_fd = CNetwork::Null;
}