File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ export enum EngineConnectionStateType {
56
56
ConnectionEstablished = 'connection-established' ,
57
57
Disconnecting = 'disconnecting' ,
58
58
Disconnected = 'disconnected' ,
59
+ Paused = 'paused' ,
59
60
}
60
61
61
62
export enum DisconnectingType {
@@ -206,6 +207,7 @@ export type EngineConnectionState =
206
207
| State < EngineConnectionStateType . Connecting , ConnectingValue >
207
208
| State < EngineConnectionStateType . ConnectionEstablished , void >
208
209
| State < EngineConnectionStateType . Disconnecting , DisconnectingValue >
210
+ | State < EngineConnectionStateType . Paused , void >
209
211
| State < EngineConnectionStateType . Disconnected , void >
210
212
211
213
export enum EngineConnectionEvents {
@@ -1308,7 +1310,7 @@ class EngineConnection extends EventTarget {
1308
1310
)
1309
1311
} else {
1310
1312
this . state = {
1311
- type : EngineConnectionStateType . Disconnected ,
1313
+ type : EngineConnectionStateType . Paused ,
1312
1314
}
1313
1315
}
1314
1316
this . triggeredStart = false
Original file line number Diff line number Diff line change @@ -260,9 +260,7 @@ export const engineStreamMachine = setup({
260
260
261
261
let oldEngineConnection =
262
262
rootContext . engineCommandManager . engineConnection
263
- setTimeout ( ( ) => {
264
- rootContext . engineCommandManager . tearDown ( { idleMode : true } )
265
- } , 1000 )
263
+ rootContext . engineCommandManager . tearDown ( { idleMode : true } )
266
264
267
265
let timeoutCheckId : ReturnType < typeof setTimeout >
268
266
const timeoutEjectId = setTimeout ( ( ) => {
@@ -274,7 +272,7 @@ export const engineStreamMachine = setup({
274
272
timeoutCheckId = setTimeout ( ( ) => {
275
273
if (
276
274
oldEngineConnection ?. state ?. type !==
277
- EngineConnectionStateType . Disconnected
275
+ EngineConnectionStateType . Paused
278
276
) {
279
277
checkClosed ( )
280
278
return
You can’t perform that action at this time.
0 commit comments