$ 0 0 Thank you Karol, now I detect correctly when the cable is unplugged and reconnect when it is plugged without having to delete my socket.