fix: prevent tests segfault

This commit is contained in:
Patryk Osmaczko 2022-08-24 18:40:56 +02:00 committed by osmaczko
parent 78747889ab
commit 614f0b988c
1 changed files with 3 additions and 1 deletions

View File

@ -277,7 +277,9 @@ func (m *Messenger) timeoutStatusUpdates(fromClock uint64, tillClock uint64) {
// Send deactivatedStatusUpdates to Client
if err == nil {
if m.config.messengerSignalsHandler != nil {
m.config.messengerSignalsHandler.StatusUpdatesTimedOut(&deactivatedStatusUpdates)
}
} else {
m.logger.Debug("Unable to get deactivated automatic status updates from db", zap.Error(err))
}