Skip to content

Commit 6780305

Browse files
Potential fix for pull request finding 'CodeQL / Missing Dispose call on local IDisposable'
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent e95c4c9 commit 6780305

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Dashboard/AI/ChatEndpoints.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ void RecordPhase(string phase, double ms, object? extra = null)
257257
// SSE write lock + emit helper — declared up here so the
258258
// session.On callback below can use SafeEmit for the
259259
// sdk.first_event timing ping.
260-
var sseLock = new SemaphoreSlim(1, 1);
260+
using var sseLock = new SemaphoreSlim(1, 1);
261261
async Task SafeEmit(string sseData)
262262
{
263263
await sseLock.WaitAsync();

0 commit comments

Comments
 (0)