File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,14 @@ class Pack {
118
118
this . requests . push ( undefined ) ;
119
119
this . requestsTimeout = undefined ;
120
120
} , MAX_TIME_IN_FRESH_PACK ) ;
121
+ if ( this . requestsTimeout . unref ) this . requestsTimeout . unref ( ) ;
122
+ }
123
+ }
124
+
125
+ stopCapturingRequests ( ) {
126
+ if ( this . requestsTimeout !== undefined ) {
127
+ clearTimeout ( this . requestsTimeout ) ;
128
+ this . requestsTimeout = undefined ;
121
129
}
122
130
}
123
131
@@ -1232,6 +1240,7 @@ class PackFileCacheStrategy {
1232
1240
const reportProgress = ProgressPlugin . getReporter ( this . compiler ) ;
1233
1241
return ( this . storePromise = packPromise
1234
1242
. then ( pack => {
1243
+ pack . stopCapturingRequests ( ) ;
1235
1244
if ( ! pack . invalid ) return ;
1236
1245
this . packPromise = undefined ;
1237
1246
this . logger . log ( `Storing pack...` ) ;
You can’t perform that action at this time.
0 commit comments