Skip to content

Commit

Permalink
re-name inConfig to reflect new purpose
Browse files Browse the repository at this point in the history
  • Loading branch information
eyedeekay committed Jun 8, 2019
1 parent 7336f64 commit 42e3406
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -672,7 +672,7 @@ public synchronized void saveConfig(TunnelController tc) throws IOException {
String inputName = inputController.getProperty("name");
Properties map = new OrderedProperties();

File cfgFile = inConfig(tc);
File cfgFile = assureConfigFile(tc);
inputController.setProperty("configFile", cfgFile.getAbsolutePath());

_controllersLock.readLock().lock();
Expand All @@ -692,7 +692,7 @@ public synchronized void saveConfig(TunnelController tc) throws IOException {
public synchronized void removeConfig(TunnelController tc) throws IOException {
Properties map = new OrderedProperties();

File cfgFile = inConfig(tc);
File cfgFile = assureConfigFile(tc);

_controllersLock.readLock().lock();
try {
Expand All @@ -712,12 +712,12 @@ public synchronized void removeConfig(TunnelController tc) throws IOException {

/**
* return the config File associated with a TunnelController or a default
* value based on the tunnel name
* File based on the tunnel name
*
* @since 0.9.41
* @return the File ready for use
*/
public synchronized File inConfig(TunnelController tc) throws IOException {
public synchronized File assureConfigFile(TunnelController tc) throws IOException {
Properties inputController = tc.getConfig("");
String configFileName = inputController.getProperty("configFile");
if (configFileName == null)
Expand Down

0 comments on commit 42e3406

Please sign in to comment.