|
@@ -305,7 +305,9 @@ void mconsole_stop(struct mc_request *req)
|
|
|
deactivate_fd(req->originating_fd, MCONSOLE_IRQ);
|
|
|
os_set_fd_block(req->originating_fd, 1);
|
|
|
mconsole_reply(req, "stopped", 0, 0);
|
|
|
- while (mconsole_get_request(req->originating_fd, req)) {
|
|
|
+ for (;;) {
|
|
|
+ if (!mconsole_get_request(req->originating_fd, req))
|
|
|
+ continue;
|
|
|
if (req->cmd->handler == mconsole_go)
|
|
|
break;
|
|
|
if (req->cmd->handler == mconsole_stop) {
|