1
0
mirror of https://github.com/RobinLinus/snapdrop.git synced 2025-06-01 07:20:30 -07:00

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