openframeworks/openFrameworks — pull request #1888 by SoylentGraham (2013-02-25 17:38:55+00:00)
Title: Fixed ofxTCPServer not close()ing properly when setup() fails due to bind()

Previously if you called setup() to an already-bound port the TCPServer
would open a socket, but not bind and fail correctly.

A subsequent close() wouldn't actually close the TCPServer so you
couldn't re-use the ofxTCPServer; In my case to try and bind to another
port.

Now the TCPServer is cleaned up properly.