Files
NodeBB/src
Aziz Khoury 50323c3d23 guarding against Errors on Socket Disconnect
Saw this 

```
TypeError: Cannot call method 'indexOf' of undefined
    at Socket.<anonymous> (/home/admin/NodeBB/src/websockets.js:108:33)
    at Socket.EventEmitter.emit [as $emit] (events.js:95:17)
    at Socket.onDisconnect (/home/admin/NodeBB/node_modules/socket.io/lib/socket.js:153:10)
    at SocketNamespace.handleDisconnect (/home/admin/NodeBB/node_modules/socket.io/lib/namespace.js:229:46)
```

and this

```
/home/admin/NodeBB/src/websockets.js:113
			if (userSockets[uid].length === 0) {
			                    ^
TypeError: Cannot read property 'length' of undefined
    at Socket.<anonymous> (/home/admin/NodeBB/src/websockets.js:113:24)
```

in my logs, when users are disconnecting
2013-12-30 19:40:57 -05:00
..
2013-12-23 19:17:03 -05:00
2013-12-29 23:33:28 -05:00
2013-12-06 17:47:48 -05:00
2013-12-05 21:51:05 -05:00
2013-12-17 17:48:51 -05:00
2013-11-23 17:56:03 -05:00
2013-12-27 14:09:22 -05:00
2013-12-05 13:11:27 -05:00
2013-12-27 14:09:22 -05:00
2013-12-29 21:35:03 -05:00
2013-12-18 15:32:38 -05:00
2013-12-29 23:33:28 -05:00
2013-12-23 13:59:12 -05:00
2013-12-05 21:29:51 -05:00
2013-12-21 19:42:07 -05:00
2013-12-30 16:09:07 -05:00
2013-12-29 23:33:28 -05:00