diff options
-rw-r--r-- | libavformat/tcp.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libavformat/tcp.c b/libavformat/tcp.c index 3c9ff0fd53..2d417ecc47 100644 --- a/libavformat/tcp.c +++ b/libavformat/tcp.c @@ -69,7 +69,8 @@ static int tcp_open(URLContext *h, const char *uri, int flags) if (ret < 0) { if (ff_neterrno() == FF_NETERROR(EINTR)) goto redo; - if (ff_neterrno() != FF_NETERROR(EINPROGRESS)) + if (ff_neterrno() != FF_NETERROR(EINPROGRESS) && + ff_neterrno() != FF_NETERROR(EAGAIN)) goto fail; /* wait until we are connected or until abort */ |