mirror of
https://github.com/langgenius/dify.git
synced 2026-02-19 16:01:03 -05:00
fix(api): fix automatically disconnect not working
This commit is contained in:
@@ -137,7 +137,7 @@ def build_workflow_event_stream(
|
||||
"No workflow events received for %s seconds, keeping stream open",
|
||||
idle_timeout,
|
||||
)
|
||||
last_msg_time = current_time
|
||||
return
|
||||
if current_time - last_ping_time >= ping_interval:
|
||||
yield StreamEvent.PING.value
|
||||
last_ping_time = current_time
|
||||
|
||||
Reference in New Issue
Block a user