Backported various little edits from Pro edition.

This commit is contained in:
Thulinma 2016-05-30 15:17:54 +02:00
parent ef9938da0c
commit 4c9c6fa7ba
78 changed files with 2334 additions and 1266 deletions

View file

@ -510,11 +510,8 @@ unsigned int Socket::Connection::iwrite(const void * buffer, int len) {
return 0;
break;
default:
if (errno != EPIPE && errno != ECONNRESET) {
Error = true;
remotehost = strerror(errno);
DEBUG_MSG(DLVL_WARN, "Could not iwrite data! Error: %s", remotehost.c_str());
}
INSANE_MSG("Could not iwrite data! Error: %s", strerror(errno));
close();
return 0;
break;
@ -555,11 +552,8 @@ int Socket::Connection::iread(void * buffer, int len, int flags) {
return 0;
break;
default:
if (errno != EPIPE) {
Error = true;
remotehost = strerror(errno);
DEBUG_MSG(DLVL_WARN, "Could not iread data! Error: %s", remotehost.c_str());
}
INSANE_MSG("Could not iread data! Error: %s", strerror(errno));
close();
return 0;
break;