Prevent from finalizing twice. 09/11809/1
authorSung-jae Park <nicesj.park@samsung.com>
Tue, 5 Nov 2013 10:04:01 +0000 (19:04 +0900)
committerSung-jae Park <nicesj.park@samsung.com>
Tue, 5 Nov 2013 10:04:01 +0000 (19:04 +0900)
commit3a0f6de4ae80288f922ad40e5857b5fcc958cf4c
treeffa2256baa9a31bb7652fd4c4540e6be1627e81c
parente9a3e908f1342271081346453747ba9ac2f39d27
Prevent from finalizing twice.

If a develop calls provider_fini, and there is a connection with master,
the disconnected event callback will be called.

In that case, the developer can calls provider_fini again from the disconnected callback.
Then the finalizing sequence will be processed twice.

This can cause the serious problem of service providers.

So this patch will check the provider_fini calling status,
And prevent from finalizing twice.

Change-Id: I00b4efd3b52ad1de6a5dee2a40d30609e3ac318e
src/provider.c