mirror of
https://github.com/NanmiCoder/cc-haha
synced 2026-07-18 13:23:33 +08:00
Fix issue #964: Prevent starting terminal if already starting
This commit is contained in:
parent
6e6c87aa16
commit
ee026bc85f
@ -151,6 +151,9 @@ export function TerminalSettings({
|
|||||||
}, [runtime])
|
}, [runtime])
|
||||||
|
|
||||||
const startTerminal = useCallback(async () => {
|
const startTerminal = useCallback(async () => {
|
||||||
|
|
||||||
|
if (runtime.status === 'starting') return
|
||||||
|
|
||||||
if (!terminalApi.isAvailable()) {
|
if (!terminalApi.isAvailable()) {
|
||||||
updateTerminalRuntime(runtime, { status: 'unavailable' })
|
updateTerminalRuntime(runtime, { status: 'unavailable' })
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user