Merge pull request #1224 from PepperDash/feature/inclusive-poll

This commit is contained in:
Andrew Welker
2025-03-24 14:50:26 -05:00
committed by GitHub
2 changed files with 6 additions and 6 deletions

View File

@@ -19,3 +19,4 @@ jobs:
version: ${{ needs.getVersion.outputs.version }} version: ${{ needs.getVersion.outputs.version }}
tag: ${{ needs.getVersion.outputs.tag }} tag: ${{ needs.getVersion.outputs.tag }}
channel: ${{ needs.getVersion.outputs.channel }} channel: ${{ needs.getVersion.outputs.channel }}
bypassPackageCheck: true

View File

@@ -151,17 +151,16 @@ namespace PepperDash.Essentials.Core
{ {
if (MonitorBytesReceived) if (MonitorBytesReceived)
{ {
Client.BytesReceived += Client_BytesReceived; Client.BytesReceived -= Client_BytesReceived;
Client.BytesReceived += Client_BytesReceived;
} }
else else
{ {
Client.TextReceived -= Client_TextReceived;
Client.TextReceived += Client_TextReceived; Client.TextReceived += Client_TextReceived;
} }
if (!IsSocket) BeginPolling();
{
BeginPolling();
}
} }
void socket_ConnectionChange(object sender, GenericSocketStatusChageEventArgs e) void socket_ConnectionChange(object sender, GenericSocketStatusChageEventArgs e)