Skip to content

Commit ec4170b

Browse files
committed
FIX: Fix Live.stop responsiveness
1 parent 67708d2 commit ec4170b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
#### Enhancements
66
- Improved exception messages emitted by the `Live` client to always include contents of any `ErrorMsg` sent by the gateway
77

8+
#### Bug fixes
9+
- Fixed an issue where calling `Live.stop` would not close the connection within a reasonable time
10+
811
## 0.44.0 - 2024-10-22
912

1013
#### Enhancements

databento/live/session.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -440,8 +440,7 @@ def stop(self) -> None:
440440
return
441441
if self._transport.can_write_eof():
442442
self._transport.write_eof()
443-
else:
444-
self._transport.close()
443+
self._transport.close()
445444

446445
def start(self) -> None:
447446
"""

0 commit comments

Comments
 (0)