mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-05-07 14:56:06 +02:00
lock
This commit is contained in:
@@ -61,12 +61,17 @@ namespace VRCX
|
||||
}
|
||||
|
||||
internal void Exit()
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
_timer.Change(-1, -1);
|
||||
_performanceCounter?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private void TimerCallback(object state)
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
try
|
||||
{
|
||||
@@ -81,3 +86,4 @@ namespace VRCX
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -36,10 +36,13 @@ namespace VRCX
|
||||
}
|
||||
|
||||
internal void Exit()
|
||||
{
|
||||
lock (this)
|
||||
{
|
||||
m_Timer.Change(-1, -1);
|
||||
m_Client?.Dispose();
|
||||
}
|
||||
}
|
||||
|
||||
private void TimerCallback(object state)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user