fix api mystery crash

This commit is contained in:
luto 2014-11-22 16:39:42 +01:00
parent 3ebcaad31f
commit 4eee89ad12

View file

@ -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;