shred() takes into account new user status to set the correct hash to
offline
This commit is contained in:
@@ -336,8 +336,13 @@ public final class NoCore {
|
|||||||
} catch (NoAdapterException e) {
|
} catch (NoAdapterException e) {
|
||||||
throw new NoDashFatalException("Could not add bytesets back into pool.");
|
throw new NoDashFatalException("Could not add bytesets back into pool.");
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if (!session.isNewUser()) {
|
||||||
|
adapter.goOffline(session.getOriginalHash());
|
||||||
|
} else {
|
||||||
adapter.goOffline(session.getNoUserSafe().createHash());
|
adapter.goOffline(session.getNoUserSafe().createHash());
|
||||||
|
}
|
||||||
} catch (NoAdapterException e) {
|
} catch (NoAdapterException e) {
|
||||||
throw new NoDashFatalException("Could not go offline.", e);
|
throw new NoDashFatalException("Could not go offline.", e);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user