Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0339726

Browse filesBrowse files
committed
Fix setting 0-timeout timer with Tornado.
It doesn't allow 0, so set a very small minimum. Fixes #18580.
1 parent 5173cda commit 0339726
Copy full SHA for 0339726

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/backends/backend_webagg_core.py

Copy file name to clipboardExpand all lines: lib/matplotlib/backends/backend_webagg_core.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def _timer_start(self):
512512
else:
513513
self._timer = tornado.ioloop.PeriodicCallback(
514514
self._on_timer,
515-
self.interval)
515+
max(self.interval, 1e-6))
516516
self._timer.start()
517517

518518
def _timer_stop(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.