Skip to content

Commit

Permalink
Merge branch 'main' into demos
Browse files Browse the repository at this point in the history
  • Loading branch information
p-samuel committed Jan 10, 2023
2 parents 0e04761 + 673a410 commit a315b07
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
1 change: 0 additions & 1 deletion sample/vcl/subscriber/src/View.Main.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,6 @@ object ViewMain: TViewMain
Width = 132
Height = 225
Caption = 'Filters'
Enabled = False
TabOrder = 7
object lbPriority: TLabel
Left = 15
Expand Down
13 changes: 11 additions & 2 deletions src/Notify.Api.Indy.pas
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,12 @@ implementation
IdURI,
Notify.SmartPointer,
System.SysUtils,
System.StrUtils,
System.Types,
Notify.Logs,
Notify.Notification.DTO, Notify.Error, Notify.Response.Data;
Notify.Notification.DTO,
Notify.Error,
Notify.Response.Data;

{ TNotityApiIndy }

Expand Down Expand Up @@ -333,6 +337,8 @@ destructor TSSEThread.Destroy;
procedure TSSEThread.DoOnWork(ASender: TObject; AWorkMode: TWorkMode; AWorkCount: Int64);
var
LEventString: UTF8String;
LStrings: TArray<String>;
LString: UTF8String;
begin

if Terminated then
Expand All @@ -347,7 +353,10 @@ procedure TSSEThread.DoOnWork(ASender: TObject; AWorkMode: TWorkMode; AWorkCount
if LEventString = FCloseConnectionMessage then
FIdHttp.Socket.Close;

NxHorizon.Instance.Post<TNotifySubscriptionEvent>(LEventString);
LStrings := SplitString(LEventString, #$A);

for LString in LStrings do
NxHorizon.Instance.Post<TNotifySubscriptionEvent>(LString);

end;

Expand Down

0 comments on commit a315b07

Please sign in to comment.