File tree 1 file changed +12
-11
lines changed
1 file changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -384,17 +384,18 @@ public final class EventLoopFuture<T> {
384
384
}
385
385
386
386
deinit {
387
- debugOnly {
388
- if let eventLoop = self . eventLoop as? SelectableEventLoop {
389
- let creation = eventLoop. promiseCreationStoreRemove ( future: self )
390
- if !isFulfilled {
391
- fatalError ( " leaking promise created at \( creation) " , file: creation. file, line: creation. line)
392
- }
393
- } else {
394
- precondition ( isFulfilled, " leaking an unfulfilled Promise " )
395
- }
396
- }
397
-
387
+ // https://github.com/vapor/vapor/issues/1689
388
+ //
389
+ // debugOnly {
390
+ // if let eventLoop = self.eventLoop as? SelectableEventLoop {
391
+ // let creation = eventLoop.promiseCreationStoreRemove(future: self)
392
+ // if !isFulfilled {
393
+ // fatalError("leaking promise created at \(creation)", file: creation.file, line: creation.line)
394
+ // }
395
+ // } else {
396
+ // precondition(isFulfilled, "leaking an unfulfilled Promise")
397
+ // }
398
+ // }
398
399
self . _isFulfilled. destroy ( )
399
400
}
400
401
}
You can’t perform that action at this time.
0 commit comments