Optimized waiting for streams/tracks.

This commit is contained in:
Thulinma 2016-06-06 16:30:30 +02:00
parent cc93a8fa4e
commit 425aa3059f
3 changed files with 16 additions and 16 deletions

View file

@ -518,6 +518,7 @@ unsigned int Socket::Connection::iwrite(const void * buffer, int len) {
}
}
if (r == 0 && (sock >= 0)) {
DONTEVEN_MSG("Socket closed by remote");
close();
}
up += r;
@ -560,6 +561,7 @@ int Socket::Connection::iread(void * buffer, int len, int flags) {
}
}
if (r == 0) {
DONTEVEN_MSG("Socket closed by remote");
close();
}
down += r;