Skip to content

Commit 55432da

Browse files
committed
fix(logstream): remove redundant subscription check
Eliminate early return on isSubscribed in subscribeTask to allow resubscription logic to proceed. This change fixes an issue where the subscription could not be re-established once terminated, improving reliability of the log stream handling.
1 parent 9cf5b38 commit 55432da

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

app/utils/logstream.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ export default class Logstream {
3535
}
3636

3737
subscribeTask = task({ drop: true }, async (): Promise<void> => {
38-
if (this.isSubscribed) {
39-
return;
40-
}
41-
4238
this.isTerminated = false;
4339
this.isSubscribed = false;
4440

0 commit comments

Comments
 (0)