File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
apps/sim/stores/operation-queue Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -156,6 +156,17 @@ export const useOperationQueueStore = create<OperationQueueState>((set, get) =>
156156
157157 emitFunction ( operation )
158158 retryTimeouts . delete ( operationId )
159+
160+ // Create new operation timeout for this retry attempt
161+ const newTimeoutId = setTimeout ( ( ) => {
162+ logger . warn ( 'Retry operation timeout - no server response after 5 seconds' , {
163+ operationId,
164+ } )
165+ operationTimeouts . delete ( operationId )
166+ get ( ) . handleOperationTimeout ( operationId )
167+ } , 5000 )
168+
169+ operationTimeouts . set ( operationId , newTimeoutId )
159170 } , delay )
160171
161172 retryTimeouts . set ( operationId , timeout )
@@ -201,8 +212,6 @@ export const useOperationQueueStore = create<OperationQueueState>((set, get) =>
201212 } ,
202213
203214 handleSocketReconnection : ( ) => {
204- logger . info ( 'Socket reconnected - clearing timeouts but keeping operations for retry' )
205-
206215 // Clear all timeouts since they're for the old socket
207216 retryTimeouts . forEach ( ( timeout ) => clearTimeout ( timeout ) )
208217 retryTimeouts . clear ( )
You can’t perform that action at this time.
0 commit comments