Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-15469]: shouldn't call save() in readResolve() as that…
… will fail on Windows
  • Loading branch information
kutzi committed Oct 13, 2012
1 parent cb450e4 commit f723e93
Showing 1 changed file with 4 additions and 2 deletions.
Expand Up @@ -813,13 +813,15 @@ private Object readResolve() {
this.defaultTargets.add(new GroupChatIMMessageTarget(chatName, null, false));
}
this.initialGroupChats = null;
save();
}

if (!this.scrambledPasswords) {
this.hudsonPassword = Scrambler.scramble(this.hudsonPassword);
this.scrambledPasswords = true;
save();
// JENKINS-15469: seems to be a bad idea to save in readResolve
// as the file to be saved/replaced is currently open for reading and thus
// save() will fail on Windows
//save();
}

return this;
Expand Down

0 comments on commit f723e93

Please sign in to comment.