1
0
Fork 0

Protocols: additional Hz rate validation

Patch by Huntley Palmer, to warn when passing Hz=0 for the protocol
args, which does not work so well.
This commit is contained in:
James Turner 2020-08-17 12:15:40 +01:00
parent d7504d8f65
commit 09067eecda

View file

@ -314,6 +314,10 @@ FGIO::parse_port_config( const string_list& tokens )
SG_LOG( SG_IO, SG_INFO, " port = " << port );
SG_LOG( SG_IO, SG_INFO, " style = " << style );
if (hertz <= 0) {
SG_LOG(SG_IO, SG_ALERT, "Non-Positive Hz rate may block generic I/O ");
}
io->set_io_channel( new SGSocket( hostname, port, style ) );
}
else