Don't assert during shutdown.

This commit is contained in:
Robin Sommer 2012-03-08 20:22:39 -08:00
parent 8eaf40ec18
commit 89a3bb33c8

View file

@ -2561,7 +2561,9 @@ bool RemoteSerializer::SendLogWrite(Peer* peer, EnumVal* id, EnumVal* writer, st
if ( ! peer->logs_requested ) if ( ! peer->logs_requested )
return false; return false;
assert(peer->log_buffer); if ( ! peer->log_buffer )
// Peer shutting down.
return false;
// Serialize the log record entry. // Serialize the log record entry.