Skip to content

Commit

Permalink
fix(tipeeestream): full connect after connect_error (#4589)
Browse files Browse the repository at this point in the history
  • Loading branch information
sogehige committed Feb 7, 2021
1 parent ea1a346 commit 1fd0388
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/bot/integrations/tipeeestream.ts
Expand Up @@ -14,7 +14,7 @@ import { mainCurrency } from '../helpers/currency';
import { eventEmitter } from '../helpers/events';
import { triggerInterfaceOnTip } from '../helpers/interface/triggers.js';
import {
error, info, tip,
error, info, tip,
} from '../helpers/log.js';
import eventlist from '../overlays/eventlist.js';
import alerts from '../registries/alerts.js';
Expand Down Expand Up @@ -108,6 +108,7 @@ class TipeeeStream extends Integration {
if (this.socketToTipeeestream !== null) {
this.socketToTipeeestream.on('connect_error', (e: Error) => {
error(chalk.red('TIPEEESTREAM.COM:') + ' error while connecting, ' + e);
this.connect(); // rerun all connect process
});
this.socketToTipeeestream.on('connect', () => {
if (this.socketToTipeeestream !== null) {
Expand Down

0 comments on commit 1fd0388

Please sign in to comment.