Fix bug keeping write and read queue on disconnect 89/33089/3
authorMarcin Niesluchowski <m.niesluchow@samsung.com>
Mon, 5 Jan 2015 11:22:21 +0000 (12:22 +0100)
committerMarcin Niesluchowski <m.niesluchow@samsung.com>
Fri, 9 Jan 2015 07:26:15 +0000 (08:26 +0100)
commit5999e3ccaad8da0b7c70240714cbe168905f0437
treefe9e651e9874492cfdcdb3535dee33df56ab6610
parent0674fa676d85b49170582cca37ccae35c749a147
Fix bug keeping write and read queue on disconnect

Read and write binary queues are not cleared in asynchronous client
after disconnect happens. Add clearing function in connect() and
completeConnection() functions of SocketClientAsync class, when connection
state changes.

Change-Id: I18f5d13a1a21d0b99ebe456bfafd4487df9c1767
src/client-async/sockets/SocketClientAsync.cpp
src/client-async/sockets/SocketClientAsync.h