From 4b550920efc1b106601c56b170213db42ea5a189 Mon Sep 17 00:00:00 2001 From: HF Date: Sat, 18 Mar 2023 15:27:26 +0100 Subject: [PATCH] remove remporary debugging stuff --- src/client.js | 4 ---- src/socket/SocketServer.js | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/src/client.js b/src/client.js index 6f08c01..6e5ac22 100644 --- a/src/client.js +++ b/src/client.js @@ -52,10 +52,6 @@ persistStore(store, {}, () => { store.dispatch(fetchMe()); socketClient.initialize(store, pixelTransferController, getRenderer); - - // for debugging - window.ppStore = store; - window.ppRender = getRenderer; }); (function load() { diff --git a/src/socket/SocketServer.js b/src/socket/SocketServer.js index 4af451e..05b23e9 100644 --- a/src/socket/SocketServer.js +++ b/src/socket/SocketServer.js @@ -350,9 +350,6 @@ class SocketServer { * have to reset it to avoid onClose to * do it again. */ - if (ws.user.id === 1) { - console.log('DEBUG killAllWsByUerIp for hf'); - } ws.chunkCnt = 0; ws.terminate(); amount += 1; @@ -639,9 +636,6 @@ class SocketServer { } deleteChunk(chunkid, ws) { - if (ws.user.id === 1) { - console.log('DEBUG delete chunk for hf', chunkid); - } ws.chunkCnt -= 1; if (!this.CHUNK_CLIENTS.has(chunkid)) return; const clients = this.CHUNK_CLIENTS.get(chunkid); @@ -653,10 +647,6 @@ class SocketServer { if (!ws.chunkCnt) { return; } - if (ws.user.id === 1) { - console.log('DEBUG delete all chunk for hf'); - } - for (const client of this.CHUNK_CLIENTS.values()) { const pos = client.indexOf(ws); if (~pos) {