[Connection] Fix crash 51/150651/1 preview1-00220
authorchleun.moon <chleun.moon@samsung.com>
Mon, 18 Sep 2017 07:00:37 +0000 (16:00 +0900)
committerchleun.moon <chleun.moon@samsung.com>
Mon, 18 Sep 2017 07:00:49 +0000 (16:00 +0900)
commit318a40e51c7a4a10743030608028adf93aea3f85
treeb0e76d51c79dec0de61d616031049857e1ddbd3e
parent30d5dcf861e0fb8ab0e3b7ec205d730856f5a257
[Connection] Fix crash

Fix crash with error message "Unhandled Exception:
System.InvalidOperationException: An attempt was
made to transition a task to a final state when it had already
completed".
It causes by calling SetResult() after SetException().
https://msdn.microsoft.com/ko-kr/library/dd449202(v=vs.110).aspx

Change-Id: I9e1c98d3507939e433f4fce5f8436459f137e629
Signed-off-by: Cheoleun Moon <chleun.moon@samsung.com>
src/Tizen.Network.Connection/Tizen.Network.Connection/ConnectionInternalManager.cs