only report CLIENT_CONNECTION_ERROR once on some paths
authorAndy Green <andy.green@linaro.org>
Thu, 14 Jan 2016 03:38:31 +0000 (11:38 +0800)
committerAndy Green <andy.green@linaro.org>
Thu, 14 Jan 2016 03:38:31 +0000 (11:38 +0800)
commit7c15eb1e427d8677a3f64e333f30afcc9e5bd4de
treefb8209a1b6211054ef23b368ff02b35734a824f1
parent389a4bb9f0cd125cdc0a21b09bb0cb1fca1d7224
only report CLIENT_CONNECTION_ERROR once on some paths

In most cases the close api will see it should send the CCE because
we are still in the waiting server reply state until the end of the
interpretation.  Only if we completed the interpretation and moved
on to ESTABLISHED do we need to handle sending it ourselves.

Signed-off-by: Andy Green <andy.green@linaro.org>
lib/client.c