Skip to content

Commit

Permalink
previewer - flush before run
Browse files Browse the repository at this point in the history
  • Loading branch information
idanpa committed Feb 25, 2024
1 parent 37fad68 commit d523d79
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions previewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,8 @@ def run(self):
while True:
try:
code, assign, do_preview = self.exec_conn.recv()
while self.exec_conn.poll(): # take only latest
code, assign, do_preview = self.exec_conn.recv()
# unmask ctrl+c
signal.signal(signal.SIGINT, signal.default_int_handler)
ctrl_c_timer = threading.Timer(CTRL_C_TIMEOUT, self.ctrl_c)
Expand Down

0 comments on commit d523d79

Please sign in to comment.