mirror of https://github.com/calzoneman/sync.git
Fix disabling ssl causing errors
This commit is contained in:
parent
a085ed83f2
commit
aadba26891
|
@ -1,3 +1,6 @@
|
||||||
|
Tue Sep 10 16:45 2013 CDT
|
||||||
|
* lib/channel.js: Don't attempt to emit to SSL sockets if it's disabled
|
||||||
|
|
||||||
Tue Sep 10 16:34 2013 CDT
|
Tue Sep 10 16:34 2013 CDT
|
||||||
* www/channel.html, www/assets/js/jwplayer.js: Cache jwplayer script
|
* www/channel.html, www/assets/js/jwplayer.js: Cache jwplayer script
|
||||||
locally since their server doesn't support SSL
|
locally since their server doesn't support SSL
|
||||||
|
|
|
@ -989,7 +989,8 @@ Channel.prototype.sendAll = function(message, data) {
|
||||||
if(this.name == "")
|
if(this.name == "")
|
||||||
return;
|
return;
|
||||||
this.server.io.sockets.in(this.name).emit(message, data);
|
this.server.io.sockets.in(this.name).emit(message, data);
|
||||||
this.server.sslio.sockets.in(this.name).emit(message, data);
|
if (this.server.cfg["enable-ssl"])
|
||||||
|
this.server.sslio.sockets.in(this.name).emit(message, data);
|
||||||
}
|
}
|
||||||
|
|
||||||
Channel.prototype.sendAllWithPermission = function(perm, msg, data) {
|
Channel.prototype.sendAllWithPermission = function(perm, msg, data) {
|
||||||
|
|
Loading…
Reference in New Issue