Refactor Network for new NetworkConfig.
This commit is contained in:
parent
6f854c8391
commit
51fecc0be9
2 changed files with 13 additions and 11 deletions
|
@ -230,7 +230,7 @@ public:
|
|||
*
|
||||
* @return Network configuration (may be a null config if we don't have one yet)
|
||||
*/
|
||||
inline const NetworkConfig &config() const { return _config };
|
||||
inline const NetworkConfig &config() const { return _config; }
|
||||
|
||||
/**
|
||||
* @return A thread-safe copy of our NetworkConfig instead of a const reference
|
||||
|
@ -238,7 +238,7 @@ public:
|
|||
inline NetworkConfig configCopy() const
|
||||
{
|
||||
Mutex::Lock _l(_lock);
|
||||
return config;
|
||||
return _config;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue