Retore traffic on disconnect
This commit is contained in:
@ -101,7 +101,7 @@ namespace RageCoop.Client
|
|||||||
Util.NativeMemory();
|
Util.NativeMemory();
|
||||||
Counter.Restart();
|
Counter.Restart();
|
||||||
}
|
}
|
||||||
|
|
||||||
#if DEBUG
|
#if DEBUG
|
||||||
#endif
|
#endif
|
||||||
public static Ped P;
|
public static Ped P;
|
||||||
@ -109,7 +109,7 @@ namespace RageCoop.Client
|
|||||||
private bool _lastDead;
|
private bool _lastDead;
|
||||||
private void OnTick(object sender, EventArgs e)
|
private void OnTick(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
if (Game.IsLoading)
|
if (Game.IsLoading)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
@ -284,7 +284,8 @@ namespace RageCoop.Client
|
|||||||
Sync.Voice.ClearAll();
|
Sync.Voice.ClearAll();
|
||||||
EntityPool.Cleanup();
|
EntityPool.Cleanup();
|
||||||
PlayerList.Cleanup();
|
PlayerList.Cleanup();
|
||||||
Main.LocalPlayerID=default;
|
LocalPlayerID=default;
|
||||||
|
WorldThread.Traffic(true);
|
||||||
}
|
}
|
||||||
private static void DoQueuedActions()
|
private static void DoQueuedActions()
|
||||||
{
|
{
|
||||||
|
@ -91,7 +91,7 @@ namespace RageCoop.Client
|
|||||||
_lastDisableTraffic = Main.Settings.DisableTraffic;
|
_lastDisableTraffic = Main.Settings.DisableTraffic;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Traffic(bool enable)
|
public static void Traffic(bool enable)
|
||||||
{
|
{
|
||||||
if (enable)
|
if (enable)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user