Skip to content

Commit

Permalink
fixed: Error 'cannot change the compression while the server is activ…
Browse files Browse the repository at this point in the history
…e' while starting application

Error occurs when TIdSOAPServerTCPIP.Active = True (set in design time).
I guess error must not occur while creating component.
  • Loading branch information
ashumkin committed Jan 22, 2015
1 parent b5c7d39 commit 46c0844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/IdSoapServerTCPIP.pas
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ function TIdSOAPServerTCPIP.DoExecute(AContext: TIdContext): boolean;
procedure TIdSOAPServerTCPIP.SetCompression(const AValue: boolean);
const ASSERT_LOCATION = 'IdSoapServerTCPIP.TIdSOAPServerTCPIP.DoExecute';
begin
Assert(not active, ASSERT_LOCATION+': cannot change the compression while the server is active');
Assert((csReading in ComponentState) or (not active), ASSERT_LOCATION+': cannot change the compression while the server is active');
{$IFDEF ID_SOAP_COMPRESSION}
FCompression := Value;
Self.Intercept := TIdServerCompressionIntercept.create(nil);
Expand Down

0 comments on commit 46c0844

Please sign in to comment.