Skip to content

Commit da6a2ba

Browse files
Merge pull request #66 from nullinside-development-group/fix/timer
fix: infinite timer
2 parents e1e96c8 + 5abc705 commit da6a2ba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/src/app/view/twitch/twitch-bot-config/twitch-bot-config.component.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,8 @@ export class TwitchBotConfigComponent implements OnInit, OnDestroy {
128128

129129
if (redirect) {
130130
this.timerId = setTimeout(() => {
131+
clearTimeout(this.timerId);
132+
131133
// Need to use window.location here instead of the router because otherwise the external javascript from Google
132134
// doesn't reload on the login page, and you can't retry your login until you refresh.
133135
//

0 commit comments

Comments
 (0)