You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2015/07/04 13:21:03 UTC

[11/16] celix git commit: CELIX-244: stop connectionListener before destroying the shellMediator allows the usage of the loghelper within the connectionListener

CELIX-244: stop connectionListener before destroying the shellMediator allows the usage of the loghelper within the connectionListener


Project: http://git-wip-us.apache.org/repos/asf/celix/repo
Commit: http://git-wip-us.apache.org/repos/asf/celix/commit/2dc3840d
Tree: http://git-wip-us.apache.org/repos/asf/celix/tree/2dc3840d
Diff: http://git-wip-us.apache.org/repos/asf/celix/diff/2dc3840d

Branch: refs/heads/feature/CELIX-237_rsa-ffi
Commit: 2dc3840ddf19287efc8acdaa1c1e95ebfd4152db
Parents: fbe73c2
Author: Bjoern Petri <bp...@apache.org>
Authored: Sat Jun 27 12:01:03 2015 +0200
Committer: Bjoern Petri <bp...@apache.org>
Committed: Sat Jun 27 12:01:03 2015 +0200

----------------------------------------------------------------------
 remote_shell/private/src/activator.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/celix/blob/2dc3840d/remote_shell/private/src/activator.c
----------------------------------------------------------------------
diff --git a/remote_shell/private/src/activator.c b/remote_shell/private/src/activator.c
index c4e395f..062420d 100644
--- a/remote_shell/private/src/activator.c
+++ b/remote_shell/private/src/activator.c
@@ -101,9 +101,9 @@ celix_status_t bundleActivator_stop(void * userData, bundle_context_pt context)
 	celix_status_t status = CELIX_SUCCESS;
 	bundle_instance_pt bi = (bundle_instance_pt) userData;
 
+	connectionListener_stop(bi->connectionListener);
 	shellMediator_destroy(bi->shellMediator);
 
-	connectionListener_stop(bi->connectionListener);
 	remoteShell_stopConnections(bi->remoteShell);
 
 	status = logHelper_stop(bi->loghelper);