cwEuCon.cpp : Fixed bug where multiple handshake-0's could be sent.
This commit is contained in:
parent
3a840015cf
commit
c266475c99
@ -571,6 +571,8 @@ namespace cw
|
|||||||
return cwLogError(kOpFailRC,"The fader bank index %i failed.", fbIndex );
|
return cwLogError(kOpFailRC,"The fader bank index %i failed.", fbIndex );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if( fb->protoState == kSendHandshake_0_Id )
|
||||||
|
{
|
||||||
// convert the fromAddr to a string
|
// convert the fromAddr to a string
|
||||||
if((rc = sock::addrToString( fromAddr, fbIP, INET_ADDRSTRLEN)) != kOkRC )
|
if((rc = sock::addrToString( fromAddr, fbIP, INET_ADDRSTRLEN)) != kOkRC )
|
||||||
return cwLogError(rc,"IP address to string conversion failed.", fbIndex);
|
return cwLogError(rc,"IP address to string conversion failed.", fbIndex);
|
||||||
@ -585,6 +587,7 @@ namespace cw
|
|||||||
_sendHandshake_0( fb );
|
_sendHandshake_0( fb );
|
||||||
|
|
||||||
fb->protoState = kWaitForHandshake_1_Id;
|
fb->protoState = kWaitForHandshake_1_Id;
|
||||||
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
@ -608,7 +611,6 @@ namespace cw
|
|||||||
// if this a 'MC Mix' DNS-SD SRV reply
|
// if this a 'MC Mix' DNS-SD SRV reply
|
||||||
if( strncmp(label, name+1, strlen(label)) == 0 )
|
if( strncmp(label, name+1, strlen(label)) == 0 )
|
||||||
{
|
{
|
||||||
|
|
||||||
unsigned n = strlen(label);
|
unsigned n = strlen(label);
|
||||||
|
|
||||||
if((rc = _on_McMix_DNS_SD_TXT( p, name+n+1, name[0]-n, fromAddr )) != kOkRC )
|
if((rc = _on_McMix_DNS_SD_TXT( p, name+n+1, name[0]-n, fromAddr )) != kOkRC )
|
||||||
|
Loading…
Reference in New Issue
Block a user