]> git.tuebingen.mpg.de Git - paraslash.git/blobdiff - vss.c
vss.c: Check status afs socket fd for writing more often.
[paraslash.git] / vss.c
diff --git a/vss.c b/vss.c
index aab051690fd9d9d4e0f71394e99f056c70f6f3c9..9ac086b6f973d4215ae6964efa1211e8c8432545 100644 (file)
--- a/vss.c
+++ b/vss.c
@@ -321,7 +321,8 @@ struct timeval *vss_preselect(fd_set *rfds, fd_set *wfds, int *max_fileno)
                return tv;
        if (!map && vss_playing() &&
                        !(mmd->new_vss_status_flags & VSS_NOMORE)) {
-               if (afsss == AFS_SOCKET_READY) {
+               if (afsss == AFS_SOCKET_READY ||
+                               afsss == AFS_SOCKET_CHECK_FOR_WRITE) {
                        PARA_DEBUG_LOG("ready and playing, but no audio file\n");
                        para_fd_set(afs_socket, wfds, max_fileno);
                        afsss = AFS_SOCKET_CHECK_FOR_WRITE;