ecore con: Fix UDP sockets.
authorChidambar Zinnoury <chidambar.zinnoury@zefla.fr>
Fri, 20 Nov 2015 16:46:38 +0000 (17:46 +0100)
committerChidambar Zinnoury <chidambar.zinnoury@zefla.fr>
Fri, 20 Nov 2015 16:46:38 +0000 (17:46 +0100)
commit4983ac6d367026118ee0f632a87ed16122f6ba8b
tree5feb4b1a922e9901f0ef7b067e847fd8bd03dbff
parent58a1b2767ed5983130b7a79d456ec71786a17a7d
 ecore con: Fix UDP sockets.

 The client structure holds a file descriptor, which is not initialized (which means 0) in case of UDP as there is no client-specific socket.

 However, we check for the file descriptor being positive before closing it in the client destructor, which means that we actually end up closing the 0 file descriptor.

 That means that things were going crazy with real strange things happening afterwards…
src/lib/ecore_con/ecore_con.c