diff --git a/mud b/mud index cd9fb7c..60fed03 160000 --- a/mud +++ b/mud @@ -1 +1 @@ -Subproject commit cd9fb7ce344e162b73a72e87f7c676a73e3888ad +Subproject commit 60fed031a82aaa341d676a522025d202b8c5f6a4 diff --git a/src/main.c b/src/main.c index 8bc5065..edc9d49 100644 --- a/src/main.c +++ b/src/main.c @@ -358,9 +358,12 @@ int main (int argc, char **argv) } struct timeval timeout = { - .tv_usec = 1000, + .tv_usec = 100000, }; + if (mud_can_push(mud)) + timeout.tv_usec = 1000; + if _0_(select(mud_fd+1, &rfds, NULL, NULL, &timeout)==-1) { if (errno==EINTR) continue;