fix api mystery crash
This commit is contained in:
parent
3ebcaad31f
commit
4eee89ad12
1 changed files with 3 additions and 0 deletions
|
@ -93,6 +93,9 @@ exports.handleConnect = function(client)
|
|||
*/
|
||||
exports.kickSessionsFromPad = function(padID)
|
||||
{
|
||||
if(typeof socketio.sockets['clients'] !== 'function')
|
||||
return;
|
||||
|
||||
//skip if there is nobody on this pad
|
||||
if(socketio.sockets.clients(padID).length == 0)
|
||||
return;
|
||||
|
|
Loading…
Reference in a new issue