Skip to content

Commit 3827b4a

Browse files
authored
Merge pull request #1736 from willmcgugan/v10.15.2
fix for deadlock
2 parents eff8da6 + 40dbc0a commit 3827b4a

File tree

3 files changed

+8
-3
lines changed

3 files changed

+8
-3
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [10.15.2] - 2021-12-02
9+
10+
### Fixed
11+
12+
- Deadlock issue https://github.com/willmcgugan/rich/issues/1734
13+
814
## [10.15.1] - 2021-11-29
915

1016
### Fixed

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name = "rich"
33
homepage = "https://github.com/willmcgugan/rich"
44
documentation = "https://rich.readthedocs.io/en/latest/"
5-
version = "10.15.0"
5+
version = "10.15.2"
66
description = "Render rich text, tables, progress bars, syntax highlighting, markdown and more to the terminal"
77
authors = ["Will McGugan <[email protected]>"]
88
license = "MIT"

rich/live.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -128,11 +128,11 @@ def stop(self) -> None:
128128
with self._lock:
129129
if not self._started:
130130
return
131+
self.console.clear_live()
131132
self._started = False
132133

133134
if self.auto_refresh and self._refresh_thread is not None:
134135
self._refresh_thread.stop()
135-
self._refresh_thread.join()
136136
self._refresh_thread = None
137137
# allow it to fully render on the last even if overflow
138138
self.vertical_overflow = "visible"
@@ -158,7 +158,6 @@ def stop(self) -> None:
158158
# jupyter last refresh must occur after console pop render hook
159159
# i am not sure why this is needed
160160
self.refresh()
161-
self.console.clear_live()
162161

163162
def __enter__(self) -> "Live":
164163
self.start(refresh=self._renderable is not None)

0 commit comments

Comments
 (0)