afb-proto-ws: Fix crash on event to disconnected 65/22965/2
authorJose Bollo <jose.bollo@iot.bzh>
Thu, 7 Nov 2019 09:38:49 +0000 (10:38 +0100)
committerJose Bollo <jose.bollo@iot.bzh>
Wed, 20 Nov 2019 08:30:07 +0000 (09:30 +0100)
commitff5446ec917b5f50333f2bee17ccfdf20eb99fac
tree98ac20ab0bc790c6f444523f47c3c8869503d3c8
parent2243df148acbb5efa1a62aa23da99d87600023aa
afb-proto-ws: Fix crash on event to disconnected

There was a race condition that made the binder
crashing when reporting event to a client that was
disconnecting.

Bug-AGL: SPEC-2967

Change-Id: I37a654960b42fbce5548ace9d3fb50cf2b375090
Signed-off-by: Jose Bollo <jose.bollo@iot.bzh>
src/afb-proto-ws.c