We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 09f5e95 commit 04a3846Copy full SHA for 04a3846
site/src/modules/resources/AgentMetadata.tsx
@@ -65,6 +65,7 @@ export const AgentMetadata: FC<AgentMetadataProps> = ({
65
socket.addEventListener("error", () => {
66
displayError("Socket closed unexpectedly. Creating new connection...");
67
setMetadata(undefined);
68
+ window.clearTimeout(timeoutId);
69
timeoutId = window.setTimeout(() => {
70
createNewConnection();
71
}, 3_000);
0 commit comments