Commit 930e68a7 authored by 神楽坂玲奈's avatar 神楽坂玲奈

fix

parent b70fb018
Pipeline #15924 passed with stages
in 48 seconds
......@@ -10,8 +10,6 @@ export class Server {
ack = 0;
onMessage(socket: Socket, message: DownloadMessage, self: PeerMessage) {
console.log(message);
if (message.seq && this.ack !== message.seq) {
console.log('seq mismatch rejected');
return;
......@@ -44,7 +42,6 @@ export class Server {
ack: this.ack,
peers: Object.fromEntries(peers.map(peer => [peer.id, peer.update(self.time)]))
};
console.log(message);
socket.send(JSON.stringify(message), config.server_port, config.server_address);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment