Fixed bad ternary operator which did not behave as expected :-(
This commit is contained in:
parent
3583a010a7
commit
a23fb4cba9
@ -63,7 +63,16 @@ class TCPServer
|
||||
{
|
||||
if(!_serverStarted)
|
||||
{
|
||||
!port ? _wifiServer.begin(_port) : _wifiServer.begin(port, backlog), _port = port ;
|
||||
if(port)
|
||||
{
|
||||
_port = port;
|
||||
_wifiServer.begin(_port, backlog);
|
||||
}
|
||||
else
|
||||
{
|
||||
_wifiServer.begin(_port);
|
||||
}
|
||||
|
||||
_serverStarted = true;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user