Fix typo in server

This commit is contained in:
RobinLinus 2018-09-21 19:32:59 +02:00
parent 96e37aef40
commit 728aabd449

View file

@ -34,8 +34,10 @@ class SnapdropServer {
switch (message.type) { switch (message.type) {
case 'disconnect': case 'disconnect':
this._leaveRoom(sender); this._leaveRoom(sender);
break;
case 'pong': case 'pong':
sender.lastBeat = Date.now(); sender.lastBeat = Date.now();
break;
} }
// relay message to recipient // relay message to recipient