shred() takes into account new user status to set the correct hash to

offline
This commit is contained in:
Dave
2015-07-05 18:56:13 +02:00
parent ad951798e8
commit 81f9361eda

View File

@@ -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 {
adapter.goOffline(session.getNoUserSafe().createHash()); if (!session.isNewUser()) {
adapter.goOffline(session.getOriginalHash());
} else {
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);
} }