summaryrefslogtreecommitdiffstats
path: root/input/ipc-unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'input/ipc-unix.c')
-rw-r--r--input/ipc-unix.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/input/ipc-unix.c b/input/ipc-unix.c
index f5c8886a28..b0400496ff 100644
--- a/input/ipc-unix.c
+++ b/input/ipc-unix.c
@@ -124,15 +124,11 @@ static void *client_thread(void *p)
};
fcntl(arg->client_fd, F_SETFL, fcntl(arg->client_fd, F_GETFL, 0) | O_NONBLOCK);
- mpv_suspend(arg->client);
while (1) {
rc = poll(fds, 2, 0);
- if (rc == 0) {
- mpv_resume(arg->client);
+ if (rc == 0)
rc = poll(fds, 2, -1);
- mpv_suspend(arg->client);
- }
if (rc < 0) {
MP_ERR(arg, "Poll error\n");
continue;