diff options
Diffstat (limited to 'emulator.cpp')
-rw-r--r-- | emulator.cpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/emulator.cpp b/emulator.cpp index 0fb50dd..7dab3af 100644 --- a/emulator.cpp +++ b/emulator.cpp @@ -532,8 +532,10 @@ static int emulator(M68KDebuggingControl& m68k_debug, Graphics& graphics, CharDe } else { struct pollfd fds[1] = { {/*.fd = */socket_fd, /*.events = */POLLIN, /*.revents = */0}}; - const int timeout_msecs = 30; - poll(fds, 1, timeout_msecs); + const int timeout_msecs = 200; + if (0 == poll(fds, 1, timeout_msecs)) { + graphics.ReRender(); + } } continue; } @@ -578,8 +580,10 @@ static int emulator(M68KDebuggingControl& m68k_debug, Graphics& graphics, CharDe } else if (err == EWOULDBLOCK) { struct pollfd fds[1] = { {/*.fd = */conn_fd, /*.events = */POLLIN, /*.revents = */0}}; - const int timeout_msecs = 30; - poll(fds, 1, timeout_msecs); + const int timeout_msecs = 200; + if (0 == poll(fds, 1, timeout_msecs)) { + graphics.ReRender(); + } } } close(conn_fd); |