Retain a shared node pointer, use the active socket.  Fixed a compile warning.