Skip to content

Commit

Permalink
fix socket.io crash
Browse files Browse the repository at this point in the history
Fixes a socket.io crash that happens when running with the old simplewebrtc
  • Loading branch information
fippo authored and legastero committed Jun 26, 2019
1 parent 804d8c9 commit 7d46834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sockets.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ module.exports = function (server, config) {

function describeRoom(name) {
var adapter = io.nsps['/'].adapter;
var clients = adapter.rooms[name] || {};
var clients = adapter.rooms[name] ? adapter.rooms[name].sockets : {};
var result = {
clients: {}
};
Expand Down

0 comments on commit 7d46834

Please sign in to comment.