mirror of https://github.com/calzoneman/sync.git
Minor tweaks/fixes
This commit is contained in:
parent
29be9233e9
commit
7fbd62142e
|
@ -2,7 +2,7 @@
|
||||||
"author": "Calvin Montgomery",
|
"author": "Calvin Montgomery",
|
||||||
"name": "CyTube",
|
"name": "CyTube",
|
||||||
"description": "Online media synchronizer and chat",
|
"description": "Online media synchronizer and chat",
|
||||||
"version": "3.51.10",
|
"version": "3.51.11",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "http://github.com/calzoneman/sync"
|
"url": "http://github.com/calzoneman/sync"
|
||||||
},
|
},
|
||||||
|
|
|
@ -303,12 +303,15 @@ exports.ffprobe = function ffprobe(filename, cb) {
|
||||||
var stdout = "";
|
var stdout = "";
|
||||||
var stderr = "";
|
var stderr = "";
|
||||||
var timer = setTimeout(function () {
|
var timer = setTimeout(function () {
|
||||||
LOGGER.error("Possible runaway ffprobe process for file " + filename);
|
LOGGER.warn("Timed out when probing " + filename);
|
||||||
fflog("Killing ffprobe for " + filename + " after " + (TIMEOUT/1000) + " seconds");
|
fflog("Killing ffprobe for " + filename + " after " + (TIMEOUT/1000) + " seconds");
|
||||||
childErr = new Error("File query exceeded time limit of " + (TIMEOUT/1000) +
|
childErr = new Error(
|
||||||
" seconds. To avoid this issue, encode your videos " +
|
"File query exceeded time limit of " + (TIMEOUT/1000) +
|
||||||
|
" seconds. This can be caused if the remote server is far " +
|
||||||
|
"away or if you did not encode the video " +
|
||||||
"using the 'faststart' option: " +
|
"using the 'faststart' option: " +
|
||||||
"https://trac.ffmpeg.org/wiki/Encode/H.264#faststartforwebvideo");
|
"https://trac.ffmpeg.org/wiki/Encode/H.264#faststartforwebvideo"
|
||||||
|
);
|
||||||
child.kill("SIGKILL");
|
child.kill("SIGKILL");
|
||||||
}, TIMEOUT);
|
}, TIMEOUT);
|
||||||
|
|
||||||
|
|
|
@ -284,10 +284,12 @@ Server.prototype.getChannel = function (name) {
|
||||||
};
|
};
|
||||||
|
|
||||||
Server.prototype.unloadChannel = function (chan, options) {
|
Server.prototype.unloadChannel = function (chan, options) {
|
||||||
if (chan.dead) {
|
if (chan.dead || chan.dying) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
chan.dying = true;
|
||||||
|
|
||||||
if (!options) {
|
if (!options) {
|
||||||
options = {};
|
options = {};
|
||||||
}
|
}
|
||||||
|
@ -509,7 +511,7 @@ Server.prototype.handleChannelDelete = function (event) {
|
||||||
u.kick('Channel deleted');
|
u.kick('Channel deleted');
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!channel.dead) {
|
if (!channel.dead && !channel.dying) {
|
||||||
channel.emit('empty');
|
channel.emit('empty');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -536,7 +538,7 @@ Server.prototype.handleChannelRegister = function (event) {
|
||||||
u.kick('Channel reloading');
|
u.kick('Channel reloading');
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!channel.dead) {
|
if (!channel.dead && !channel.dying) {
|
||||||
channel.emit('empty');
|
channel.emit('empty');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue