forked from ppfun/pixelplanet
remove remporary debugging stuff
This commit is contained in:
parent
2437b44db7
commit
4b550920ef
|
@ -52,10 +52,6 @@ persistStore(store, {}, () => {
|
|||
store.dispatch(fetchMe());
|
||||
|
||||
socketClient.initialize(store, pixelTransferController, getRenderer);
|
||||
|
||||
// for debugging
|
||||
window.ppStore = store;
|
||||
window.ppRender = getRenderer;
|
||||
});
|
||||
|
||||
(function load() {
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user