Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions astrbot/core/pipeline/process_stage/method/star_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ async def process(
handlers_parsed_params = {}

for handler in activated_handlers:
if event.is_stopped():
break
params = handlers_parsed_params.get(handler.handler_full_name, {})
md = star_map.get(handler.handler_module_path)
if not md:
Expand All @@ -46,6 +48,8 @@ async def process(
wrapper = call_handler(event, handler.handler, **params)
async for ret in wrapper:
yield ret
if event.is_stopped():
break
Comment thread
Blueteemo marked this conversation as resolved.
event.clear_result() # 清除上一个 handler 的结果
except Exception as e:
traceback_text = traceback.format_exc()
Expand Down
Loading