Skip to content

Commit 20c36a6

Browse files
authored
fix(site): do not error on closed build logs stream (#16067)
Related: #15937
1 parent 401f8b4 commit 20c36a6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

site/src/api/api.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,9 @@ export const watchBuildLogsByBuildId = (
280280
);
281281

282282
socket.addEventListener("error", () => {
283+
if (socket.readyState === socket.CLOSED) {
284+
return;
285+
}
283286
onError?.(new Error("Connection for logs failed."));
284287
socket.close();
285288
});

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy