mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-23 17:06:16 -04:00
Merge pull request #2334 from luto/api-mystery-crash
fix api mystery crash
This commit is contained in:
commit
764b8af5e3
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,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…
Add table
Add a link
Reference in a new issue