Make into error
This commit is contained in:
@@ -281,6 +281,7 @@ public class AsyncNodeManager {
|
||||
break;
|
||||
workDone++;
|
||||
long ptr = job.address;
|
||||
int zeroCount = 0;
|
||||
for (int i = 0; i < NodeCleaner.OUTPUT_COUNT; i++) {
|
||||
long pos = ((long) MemoryUtil.memGetInt(ptr)) << 32; ptr += 4;
|
||||
pos |= Integer.toUnsignedLong(MemoryUtil.memGetInt(ptr)); ptr += 4;
|
||||
@@ -290,9 +291,8 @@ public class AsyncNodeManager {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (pos == 0) {
|
||||
//THIS SHOULD BE IMPOSSIBLE
|
||||
//TODO: VVVVV MUCH MEGA FIX
|
||||
if (pos == 0 && zeroCount++>0) {
|
||||
Logger.error("Remove node pos is 0 " + zeroCount + " times, this is really bad, please report" );
|
||||
continue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user