Marius Thesing
2025-07-15 21:17:26 +02:00
parent bffe6a1e55
commit c8fd34ff26
+4 -2
View File
@@ -5,14 +5,16 @@ namespace Renci.SshNet.Common
{
internal sealed class Lock
{
private readonly object _lockObject = new object();
public bool TryEnter()
{
return Monitor.TryEnter(this);
return Monitor.TryEnter(_lockObject);
}
public void Exit()
{
Monitor.Exit(this);
Monitor.Exit(_lockObject);
}
}
}