Skip to content

Commit

Permalink
Wrap start_server in create_task (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
ksunden authored Feb 2, 2023
1 parent b5f068c commit 28a1bf7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions yaqd-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).

### Fixed
- Text for two methods for has-transformed-position for pedagogical reasons
- Wrapped call to `start_server` in `create_task` for Python 3.11 compatibility

## [2022.8.0]

Expand Down
2 changes: 1 addition & 1 deletion yaqd-core/yaqd_core/_is_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def server(daemon):
server(daemon), config.get("host", ""), config.get("port", None)
)
daemon._server = ser
cls.__servers.append(ser.serve_forever())
cls.__servers.append(asyncio.create_task(ser.serve_forever()))

@classmethod
def _parse_config(cls, config_file, section, args=None):
Expand Down

0 comments on commit 28a1bf7

Please sign in to comment.