summaryrefslogtreecommitdiffstats
path: root/nova
diff options
context:
space:
mode:
authortermie <github@anarkystic.com>2011-05-25 15:43:04 -0700
committertermie <github@anarkystic.com>2011-05-25 15:43:04 -0700
commita05e8e7587e42633e8459fd050eee3a4da247330 (patch)
tree95e89dc8ad030abd4052a905906a15853ad3f8a7 /nova
parentb3506a471bbce063d72aead211f45d693bda7853 (diff)
move consumerset killing into stop
Diffstat (limited to 'nova')
-rw-r--r--nova/service.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/nova/service.py b/nova/service.py
index 141fd4253..782183322 100644
--- a/nova/service.py
+++ b/nova/service.py
@@ -175,11 +175,6 @@ class Service(object):
def kill(self):
"""Destroy the service object in the datastore."""
- self.csetthread.kill()
- try:
- self.csetthread.wait()
- except greenlet.GreenletExit:
- pass
self.stop()
try:
db.service_destroy(context.get_admin_context(), self.service_id)
@@ -187,6 +182,11 @@ class Service(object):
logging.warn(_('Service killed that has no database entry'))
def stop(self):
+ self.csetthread.kill()
+ try:
+ self.csetthread.wait()
+ except greenlet.GreenletExit:
+ pass
for x in self.timers:
try:
x.stop()