Skip to content

Commit

Permalink
Avoid .callback() in TestProcessProtocol.processEnded()
Browse files Browse the repository at this point in the history
  • Loading branch information
altendky committed Mar 14, 2020
1 parent e1e72ea commit 50077f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scrapy/utils/testproc.py
Expand Up @@ -47,4 +47,4 @@ def errReceived(self, data):

def processEnded(self, status):
self.exitcode = status.value.exitCode
self.deferred.callback(self)
reactor.callLater(0, self.deferred.callback, self)

0 comments on commit 50077f5

Please sign in to comment.