]> git.wh0rd.org Git - chrome-ext/music-player-client.git/commit
tcp-client: handle connection errors
authorMike Frysinger <vapier@gentoo.org>
Sat, 28 Sep 2013 05:01:59 +0000 (01:01 -0400)
committerMike Frysinger <vapier@gentoo.org>
Sat, 28 Sep 2013 05:01:59 +0000 (01:01 -0400)
commitfac1d77114bffa0716586ac32e64772bb24fb40a
tree2c3de34a8ec904ea3406ddae3073970317c93280
parente7d6adb435d30041cb586158b52fd4fdd71cd088
tcp-client: handle connection errors

If a connection fails, we get back the resultCode, but we never actually
check it.  That means we lie to the higher layers and say we're connected
when we're not really.

Also pass that code to the higher levels if they've requested notification.
js/tcp-client.js