This commit is contained in:
parent
b3996f7bf3
commit
ceea55b67a
|
@ -438,6 +438,8 @@ namespace BITKit.Net
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
public void Tick()
|
public void Tick()
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
while (commandQueue.TryDequeue(out var bytes))
|
while (commandQueue.TryDequeue(out var bytes))
|
||||||
{
|
{
|
||||||
|
@ -453,6 +455,11 @@ namespace BITKit.Net
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
client.Tick();
|
client.Tick();
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
BIT4Log.LogException(e);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,10 +60,17 @@ namespace BITKit.Net
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Tick(object sender, ElapsedEventArgs e)
|
private void Tick(object sender, ElapsedEventArgs e)
|
||||||
|
{
|
||||||
|
try
|
||||||
{
|
{
|
||||||
if (server.IsActive() is false || ManualTick) return;
|
if (server.IsActive() is false || ManualTick) return;
|
||||||
server.Tick();
|
server.Tick();
|
||||||
}
|
}
|
||||||
|
catch (Exception exception)
|
||||||
|
{
|
||||||
|
BIT4Log.LogException(exception);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
public void StartServer(ushort port = 27014)
|
public void StartServer(ushort port = 27014)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue