diff --git a/src/components/P2P/index.ts b/src/components/P2P/index.ts index f8333115d..a58b00d35 100644 --- a/src/components/P2P/index.ts +++ b/src/components/P2P/index.ts @@ -779,7 +779,7 @@ export class OceanP2P extends EventEmitter { // related: https://github.com/libp2p/go-libp2p-kad-dht/issues/323 async republishStoredDDOS() { try { - if (!this.db) { + if (!this.db || !this.db.ddo) { P2P_LOGGER.logMessage( `republishStoredDDOS() attempt aborted because there is no database!`, true