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());
|
store.dispatch(fetchMe());
|
||||||
|
|
||||||
socketClient.initialize(store, pixelTransferController, getRenderer);
|
socketClient.initialize(store, pixelTransferController, getRenderer);
|
||||||
|
|
||||||
// for debugging
|
|
||||||
window.ppStore = store;
|
|
||||||
window.ppRender = getRenderer;
|
|
||||||
});
|
});
|
||||||
|
|
||||||
(function load() {
|
(function load() {
|
||||||
|
|
|
@ -350,9 +350,6 @@ class SocketServer {
|
||||||
* have to reset it to avoid onClose to
|
* have to reset it to avoid onClose to
|
||||||
* do it again.
|
* do it again.
|
||||||
*/
|
*/
|
||||||
if (ws.user.id === 1) {
|
|
||||||
console.log('DEBUG killAllWsByUerIp for hf');
|
|
||||||
}
|
|
||||||
ws.chunkCnt = 0;
|
ws.chunkCnt = 0;
|
||||||
ws.terminate();
|
ws.terminate();
|
||||||
amount += 1;
|
amount += 1;
|
||||||
|
@ -639,9 +636,6 @@ class SocketServer {
|
||||||
}
|
}
|
||||||
|
|
||||||
deleteChunk(chunkid, ws) {
|
deleteChunk(chunkid, ws) {
|
||||||
if (ws.user.id === 1) {
|
|
||||||
console.log('DEBUG delete chunk for hf', chunkid);
|
|
||||||
}
|
|
||||||
ws.chunkCnt -= 1;
|
ws.chunkCnt -= 1;
|
||||||
if (!this.CHUNK_CLIENTS.has(chunkid)) return;
|
if (!this.CHUNK_CLIENTS.has(chunkid)) return;
|
||||||
const clients = this.CHUNK_CLIENTS.get(chunkid);
|
const clients = this.CHUNK_CLIENTS.get(chunkid);
|
||||||
|
@ -653,10 +647,6 @@ class SocketServer {
|
||||||
if (!ws.chunkCnt) {
|
if (!ws.chunkCnt) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (ws.user.id === 1) {
|
|
||||||
console.log('DEBUG delete all chunk for hf');
|
|
||||||
}
|
|
||||||
|
|
||||||
for (const client of this.CHUNK_CLIENTS.values()) {
|
for (const client of this.CHUNK_CLIENTS.values()) {
|
||||||
const pos = client.indexOf(ws);
|
const pos = client.indexOf(ws);
|
||||||
if (~pos) {
|
if (~pos) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user