Imap client pool improvements and implementation of MaxConcurrentClients.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user