mirror of
https://github.com/PepperDash/PepperDashCore.git
synced 2026-04-13 20:46:34 +00:00
fixes issues with various methods
This commit is contained in:
parent
a7bacd26dd
commit
91abd2dd10
1 changed files with 10 additions and 5 deletions
|
|
@ -58,11 +58,10 @@ namespace PepperDash.Core
|
||||||
if (setting == eStreamDebuggingSetting.Off)
|
if (setting == eStreamDebuggingSetting.Off)
|
||||||
{
|
{
|
||||||
DisableDebugging();
|
DisableDebugging();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
SetDebuggingWithSpecificTimeout(setting, _DefaultDebugTimeoutMin);
|
||||||
SetDebuggingWithSpecificTimeout(setting, _DefaultDebugTimeoutMin);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
@ -72,6 +71,12 @@ namespace PepperDash.Core
|
||||||
/// <param name="minutes"></param>
|
/// <param name="minutes"></param>
|
||||||
public void SetDebuggingWithSpecificTimeout(eStreamDebuggingSetting setting, uint minutes)
|
public void SetDebuggingWithSpecificTimeout(eStreamDebuggingSetting setting, uint minutes)
|
||||||
{
|
{
|
||||||
|
if ((setting & eStreamDebuggingSetting.Off) == eStreamDebuggingSetting.Off)
|
||||||
|
{
|
||||||
|
DisableDebugging();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
_DebugTimeoutInMs = minutes * 60000;
|
_DebugTimeoutInMs = minutes * 60000;
|
||||||
|
|
||||||
if (DebugExpiryPeriod != null)
|
if (DebugExpiryPeriod != null)
|
||||||
|
|
@ -94,7 +99,7 @@ namespace PepperDash.Core
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Disabled debugging
|
/// Disabled debugging
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void DisableDebugging()
|
private void DisableDebugging()
|
||||||
{
|
{
|
||||||
DebugExpiryPeriod.Stop();
|
DebugExpiryPeriod.Stop();
|
||||||
DebugExpiryPeriod.Dispose();
|
DebugExpiryPeriod.Dispose();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue