Skip to content

Commit 9ed2b65

Browse files
committed
fix(hub): set shutdown delay to 0 when on workspace always mode
fix: update where the config opt comes from fix: .
1 parent f269223 commit 9ed2b65

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lua/mcphub/hub.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function MCPHub:new(opts)
4949
server_url = opts.server_url,
5050
config = opts.config,
5151
auto_toggle_mcp_servers = opts.auto_toggle_mcp_servers,
52-
shutdown_delay = opts.shutdown_delay,
52+
shutdown_delay = (opts.workspace or {}).enabled == "always" and 0 or opts.shutdown_delay,
5353
cmd = opts.cmd,
5454
cmdArgs = opts.cmdArgs,
5555
ready = false,

0 commit comments

Comments
 (0)