small thing

This commit is contained in:
Michelle Bu 2013-02-07 12:25:56 -08:00
parent f2c420fb59
commit e20c74789a

View File

@ -279,10 +279,11 @@ PeerServer.prototype._handleTransmission = function(message, res) {
} else if (type === 'LEAVE' && !dst) {
this._removePeer(src);
if (!!res) res.send(200);
} else {
} else if (src) {
// Assume a disconnect if the client no longer exists.
// Unless it's a message from the server.
this._handleTransmission({
type: 'LEAVE',
type: 'EXPIRE',
src: dst,
dst: src
});