Allow booting of clients irrespetive of their current state

remotes/origin/HEAD
markuspg 8 years ago
parent ac9037ffa9
commit c151717aee

@ -88,11 +88,7 @@ void lc::Client::BeamFile( const QString &argFileToBeam, const QString * const a
} }
void lc::Client::Boot( const QString &argNetworkBroadcastAddress ) { void lc::Client::Boot( const QString &argNetworkBroadcastAddress ) {
if ( state == state_t::SHUTTING_DOWN || state == state_t::RESPONDING ) { QStringList arguments{ QStringList{} << "-i" << argNetworkBroadcastAddress << mac };
return;
}
QStringList arguments;
arguments << "-i" << argNetworkBroadcastAddress << mac;
// Start the process // Start the process
QProcess wakeonlanProcess; QProcess wakeonlanProcess;
@ -101,8 +97,8 @@ void lc::Client::Boot( const QString &argNetworkBroadcastAddress ) {
wakeonlanProcess.startDetached( settings->wakeonlanCmd, arguments ); wakeonlanProcess.startDetached( settings->wakeonlanCmd, arguments );
// Output message via the debug messages tab // Output message via the debug messages tab
debugMessagesTextEdit->appendPlainText( "[DEBUG] " + debugMessagesTextEdit->appendPlainText( "[DEBUG] " + settings->wakeonlanCmd
settings->wakeonlanCmd +" " + arguments.join( " " ) ); + " " + arguments.join( " " ) );
pingTimer->start( 3000 ); pingTimer->start( 3000 );

Loading…
Cancel
Save