Close socket by default when destroying object
authorRomain Forlot <romain.forlot@iot.bzh>
Thu, 1 Jun 2017 13:59:57 +0000 (15:59 +0200)
committerRomain Forlot <romain.forlot@iot.bzh>
Thu, 1 Jun 2017 16:40:13 +0000 (18:40 +0200)
commit71c41df6cd794b670f9a16ca060a9c4ab054200e
tree1842467c76cc68ab39f66c881653e7ab6ca9382c
parente7864bd53878176fd7855d31e9141bd09efc33ad
Close socket by default when destroying object

As socket is back to only movable, only one copy of a socket
can be present at a time, so when the object is destroyed we have
to close the socket too.

Change-Id: Id64bb53919ce7c24476c26ba9a8520affa3f6273
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
CAN-binder/low-can-binding/utils/socketcan.cpp