locking the connection table

Made sure the connectedNodes can't be altered while in use.