mirror of https://github.com/calzoneman/sync.git
patch a couple of bugs
This commit is contained in:
parent
dea52ae78b
commit
823ab91d04
|
@ -633,6 +633,8 @@ Channel.prototype.playNext = function() {
|
||||||
|
|
||||||
// Reset voteskip
|
// Reset voteskip
|
||||||
this.voteskip = false;
|
this.voteskip = false;
|
||||||
|
this.drinks = 0;
|
||||||
|
this.broadcastDrinks();
|
||||||
|
|
||||||
var old = this.position;
|
var old = this.position;
|
||||||
// Wrap around if the end is hit
|
// Wrap around if the end is hit
|
||||||
|
@ -676,6 +678,8 @@ Channel.prototype.jumpTo = function(pos) {
|
||||||
|
|
||||||
// Reset voteskip
|
// Reset voteskip
|
||||||
this.voteskip = false;
|
this.voteskip = false;
|
||||||
|
this.drinks = 0;
|
||||||
|
this.broadcastDrinks();
|
||||||
|
|
||||||
var old = this.position;
|
var old = this.position;
|
||||||
this.position = pos;
|
this.position = pos;
|
||||||
|
@ -881,7 +885,7 @@ Channel.prototype.tryChangeFilter = function(user, data) {
|
||||||
catch(e) {
|
catch(e) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.updateFilter(data);
|
this.updateFilter(data.filter);
|
||||||
}
|
}
|
||||||
else if(data.cmd == "remove") {
|
else if(data.cmd == "remove") {
|
||||||
this.removeFilter(data.filter[0]);
|
this.removeFilter(data.filter[0]);
|
||||||
|
|
|
@ -14,6 +14,7 @@ var Config = require("./config.js");
|
||||||
var Logger = require("./logger.js");
|
var Logger = require("./logger.js");
|
||||||
var Rank = require("./rank.js");
|
var Rank = require("./rank.js");
|
||||||
var Media = require("./media.js").Media;
|
var Media = require("./media.js").Media;
|
||||||
|
var Server = require("./server.js");
|
||||||
|
|
||||||
var initialized = false;
|
var initialized = false;
|
||||||
|
|
||||||
|
@ -86,7 +87,7 @@ exports.loadChannel = function(chan) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else if(rows[0].name != chan.name) {
|
else if(rows[0].name != chan.name) {
|
||||||
chan.name = rows[0].name;
|
return rows[0].name;
|
||||||
}
|
}
|
||||||
chan.registered = true;
|
chan.registered = true;
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ The above copyright notice and this permission notice shall be included in all c
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const VERSION = "1.1.1";
|
const VERSION = "1.1.2";
|
||||||
|
|
||||||
var fs = require("fs");
|
var fs = require("fs");
|
||||||
var Logger = require("./logger.js");
|
var Logger = require("./logger.js");
|
||||||
|
@ -49,6 +49,7 @@ exports.io.sockets.on("connection", function(socket) {
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
process.on("uncaughtException", function(err) {
|
process.on("uncaughtException", function(err) {
|
||||||
Logger.errlog.log("[SEVERE] Uncaught Exception: " + err);
|
Logger.errlog.log("[SEVERE] Uncaught Exception: " + err);
|
||||||
});
|
});
|
||||||
|
@ -57,6 +58,7 @@ process.on("exit", shutdown);
|
||||||
process.on("SIGINT", shutdown);
|
process.on("SIGINT", shutdown);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
function shutdown() {
|
function shutdown() {
|
||||||
Logger.syslog.log("Unloading channels...");
|
Logger.syslog.log("Unloading channels...");
|
||||||
for(var name in exports.channels) {
|
for(var name in exports.channels) {
|
||||||
|
|
Loading…
Reference in New Issue