From e78f7a93bd2a016db7a37a86c40fc92f25b8545d Mon Sep 17 00:00:00 2001 From: olveyra Date: Mon, 7 Jul 2008 17:51:09 +0000 Subject: [PATCH] better way to stop engine with process signals --HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%4046 --- scrapy/trunk/scrapy/core/engine.py | 1 - scrapy/trunk/scrapy/core/manager.py | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/scrapy/trunk/scrapy/core/engine.py b/scrapy/trunk/scrapy/core/engine.py index b429a4ca1..46c57b6cf 100644 --- a/scrapy/trunk/scrapy/core/engine.py +++ b/scrapy/trunk/scrapy/core/engine.py @@ -121,7 +121,6 @@ class ExecutionEngine(object): reactor.listenTCP(*args, **kwargs) self.running = True reactor.run() # blocking call - self.stop() def stop(self): """Stop the execution engine""" diff --git a/scrapy/trunk/scrapy/core/manager.py b/scrapy/trunk/scrapy/core/manager.py index 191303ce4..2719172c7 100644 --- a/scrapy/trunk/scrapy/core/manager.py +++ b/scrapy/trunk/scrapy/core/manager.py @@ -57,7 +57,8 @@ class ExecutionManager(object): """Start the scrapy server, without scheduling any domains""" self.configure(**opts) scrapyengine.keep_alive = True - scrapyengine.start() + scrapyengine.start()# blocking call + self.stop() def stop(self): """Stop the scrapy server, shutting down the execution engine"""