Imap client pool improvements and implementation of MaxConcurrentClients.

This commit is contained in:
Burak Kaan Köse
2024-06-21 04:27:44 +02:00
parent 1c96c0ccbf
commit 150bf124a9
2 changed files with 45 additions and 12 deletions

View File

@@ -45,8 +45,7 @@ namespace Wino.Core.Services
// This call will make sure that everything is authenticated + connected successfully.
var client = await clientPool.GetClientAsync();
await client.DisconnectAsync(true);
client.Dispose();
clientPool.Release(client);
}
}
}