libs: pass the port to KSGRD::SensorManager::engage() in KSGRD::SensorManager::resynchronize()

no idea why it was not

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2024-05-12 11:56:58 +03:00
parent 957da2bb43
commit 734c96df2b

View file

@ -298,14 +298,14 @@ bool SensorManager::resynchronize( const QString &hostName )
return false; return false;
QString shell, command; QString shell, command;
int port; int port = -1;
hostInfo( hostName, shell, command, port ); hostInfo( hostName, shell, command, port );
mAgents.remove( hostName ); mAgents.remove( hostName );
kDebug (1215) << "Re-synchronizing connection to " << hostName; kDebug (1215) << "Re-synchronizing connection to " << hostName;
return engage( hostName, shell, command ); return engage( hostName, shell, command, port );
} }
void SensorManager::notify( const QString &msg ) const void SensorManager::notify( const QString &msg ) const