Skip to content

Commit

Permalink
Update ModalAddTorrent.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
xssnick authored Nov 30, 2023
1 parent 5dbcbff commit e04d088
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/ModalAddTorrent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export class AddTorrentModal extends Component<AddTorrentModalProps, State> {

startCheckFiles = (hash: string) => {
// check header availability every 100 ms, and load files list when we get it
this.inter = setInterval(() => {
this.inter = window.setInterval(() => {
CheckHeader(hash).then(has => {
if (has) {
GetFiles(hash).then((tree) => {
Expand Down Expand Up @@ -246,4 +246,4 @@ export class AddTorrentModal extends Component<AddTorrentModalProps, State> {
</>
));
}
}
}

0 comments on commit e04d088

Please sign in to comment.