Skip to content

Commit

Permalink
Backport PR matplotlib#27528: FIX: Remove runloop execution while wai…
Browse files Browse the repository at this point in the history
…ting for stdin
  • Loading branch information
jklymak authored and meeseeksmachine committed Dec 16, 2023
1 parent b63a5cb commit ca293a2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/_macosx.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,6 @@ static int wait_for_stdin() {
if (!event) { break; }
[NSApp sendEvent: event];
}
// We need to run the run loop for a short time to allow the
// events to be processed and keep flushing them while we wait for stdin
[[NSRunLoop currentRunLoop] runUntilDate: [NSDate dateWithTimeIntervalSinceNow: 0.01]];
}
// Remove the input handler as an observer
[[NSNotificationCenter defaultCenter] removeObserver: stdinHandle];
Expand Down

0 comments on commit ca293a2

Please sign in to comment.