You've already forked lazarus-ccr
Fix comparison with invalid socket value in Synapse (Thanks Juha)
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@3873 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -19,7 +19,7 @@ interface
|
||||
|
||||
uses
|
||||
Classes, SysUtils,
|
||||
wst_types, service_intf, imp_utils, base_service_intf, client_utils,
|
||||
service_intf, base_service_intf, client_utils,
|
||||
httpsend;
|
||||
|
||||
Const
|
||||
|
@ -18,7 +18,7 @@ interface
|
||||
uses
|
||||
Classes, SysUtils,
|
||||
service_intf, base_service_intf, client_utils,
|
||||
blcksock;
|
||||
blcksock, synsock;
|
||||
|
||||
//{$DEFINE WST_DBG}
|
||||
|
||||
@ -57,8 +57,6 @@ Type
|
||||
procedure SYNAPSE_RegisterTCP_Transport();
|
||||
|
||||
implementation
|
||||
uses
|
||||
wst_types;
|
||||
|
||||
{ TTCPTransport }
|
||||
|
||||
@ -66,7 +64,7 @@ procedure TTCPTransport.Connect();
|
||||
var
|
||||
locReconnect : Boolean;
|
||||
begin
|
||||
if ( FConnection.Socket = NOT(0) ) then begin
|
||||
if ( FConnection.Socket = INVALID_SOCKET ) then begin
|
||||
FConnection.Connect(Address,Port);
|
||||
end else begin
|
||||
locReconnect := False;
|
||||
|
Reference in New Issue
Block a user