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:
parent
d7504d8f65
commit
09067eecda
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue