|
|
|
@ -21,7 +21,7 @@ impl State {
|
|
|
|
|
pub fn next(&mut self) -> Option<Event> {
|
|
|
|
|
while let Some(command) = self.next_command() {
|
|
|
|
|
let event = command.execute();
|
|
|
|
|
if event.as_ref().map_or(false, |event| event.is_blocking()) {
|
|
|
|
|
if let Some(_) = event {
|
|
|
|
|
return event;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|