summaryrefslogtreecommitdiffstats
path: root/openstack/common
diff options
context:
space:
mode:
authorJeff Peeler <jpeeler@redhat.com>2012-11-12 14:58:28 -0500
committerJeff Peeler <jpeeler@redhat.com>2012-11-12 15:58:05 -0500
commit520ea0f32f759314aa7f7acbbb3adf2bcdbd01a7 (patch)
tree6c40bcd0cbb4ece7b6abdeb85420ac5ab448f36b /openstack/common
parent5e3c7b50398bd79cf4103f062584c12efc685451 (diff)
downloadoslo-520ea0f32f759314aa7f7acbbb3adf2bcdbd01a7.tar.gz
oslo-520ea0f32f759314aa7f7acbbb3adf2bcdbd01a7.tar.xz
oslo-520ea0f32f759314aa7f7acbbb3adf2bcdbd01a7.zip
Change RPC cleanup ordering
RPC cleanup should occur before killing service threadgroup. Otherwise, the connection pool is going to be (attempted) emptied after the thread has been killed. Change-Id: Ie2b2aca495928b7ba39b2175202a072b3592ad72 Signed-off-by: Jeff Peeler <jpeeler@redhat.com>
Diffstat (limited to 'openstack/common')
-rw-r--r--openstack/common/service.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/openstack/common/service.py b/openstack/common/service.py
index dc2d374..d9634dc 100644
--- a/openstack/common/service.py
+++ b/openstack/common/service.py
@@ -132,9 +132,9 @@ class ServiceLauncher(Launcher):
except SystemExit as exc:
status = exc.code
finally:
- self.stop()
if rpc:
rpc.cleanup()
+ self.stop()
return status