Can I use Exit after adding a Queue command in the TIdTCPServer.OnExecute event?
if condition then
begin
MyNotify := TMyNotify.Create;
MyNotify.FMyData := Format('%s > %d > %s, [TimeToStr(Now), AContext.Connection.Socket.Binding.Handle, AContext.Binding.PeerIP]);
MyNotify.Notify;
Con.Queue.Add('DCCUSTOMER');
exit;
end;
Or will it cause deadlocks, or other problems?