Skip to content
This repository has been archived by the owner on Nov 23, 2017. It is now read-only.

Commit

Permalink
fixed save panicUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Schult committed Jul 17, 2015
1 parent fdc281d commit 5c501cc
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions master/lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,14 +130,9 @@ module.exports = {
changePanicUrl: function (url, which, cb) {
try {
var client = this.getClient(which, true);
client.url = url;
client.panicUrl = url;
cb(null, client);

if (client.up) {
protocol.requestSetPanicUrl(url, client.socket, cb);
}
else {
cb(null, client);
}
} catch (e) {
cb(e);
}
Expand Down

0 comments on commit 5c501cc

Please sign in to comment.