Only subscribe to accounts if the Account object is set up correctly.

This commit is contained in:
Stefan Thomas
2013-08-21 16:58:09 -07:00
parent ba48078f9e
commit ce8fd9ddbe

View File

@@ -61,7 +61,7 @@ function Account(remote, account) {
this.on('removeListener', listener_removed);
function prepare_subscribe(request) {
if (self._subs) {
if (self._account.is_valid() && self._subs) {
request.accounts(self._account_id);
}
}