Unlock the latch even in the case of an exception 54/41454/2
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Mon, 15 Jun 2015 11:52:25 +0000 (13:52 +0200)
committerDariusz Michaluk <d.michaluk@samsung.com>
Mon, 15 Jun 2015 12:59:00 +0000 (05:59 -0700)
commit7cf310ef7d25b7e6553c7af8da53af9d5123b84d
treea11460d9308445b677a0ccdc1b942dde09f26ce8
parentaca7e2907ed4461fad8a49d4d4461e43ecdc1837
Unlock the latch even in the case of an exception

[Feature]       N/A
[Cause]         If an exception is thrown during execute() the calling
thread's latch will never be unlocked.
[Solution]      Unlock the latch after the whole try/catch.
[Verification]  Built, installed, run tests

Change-Id: I2891d83f4f3459a2d2d60cdc4d2986e37894c959
common/utils/worker.cpp