tcp-client: do not leak sockets
authorMike Frysinger <vapier@gentoo.org>
Sat, 28 Sep 2013 05:06:10 +0000 (01:06 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Sep 2013 05:06:10 +0000 (01:06 -0400)
commitc7400cad8000d7fd659ec3259e6bed1c2cdc9c0a
tree3d61c58080918579c39e144c945b48a96baa63d2
parentfac1d77114bffa0716586ac32e64772bb24fb40a
tcp-client: do not leak sockets

If one object has connect() called more than once (like when reconnecting),
make sure we destroy the previous socket rather than leaking it.
js/tcp-client.js