Optimized waiting for streams/tracks.
This commit is contained in:
parent
326061ca18
commit
fcd11f44c4
3 changed files with 16 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue