fix: prevent tests segfault
This commit is contained in:
parent
78747889ab
commit
614f0b988c
|
@ -277,7 +277,9 @@ func (m *Messenger) timeoutStatusUpdates(fromClock uint64, tillClock uint64) {
|
||||||
|
|
||||||
// Send deactivatedStatusUpdates to Client
|
// Send deactivatedStatusUpdates to Client
|
||||||
if err == nil {
|
if err == nil {
|
||||||
m.config.messengerSignalsHandler.StatusUpdatesTimedOut(&deactivatedStatusUpdates)
|
if m.config.messengerSignalsHandler != nil {
|
||||||
|
m.config.messengerSignalsHandler.StatusUpdatesTimedOut(&deactivatedStatusUpdates)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
m.logger.Debug("Unable to get deactivated automatic status updates from db", zap.Error(err))
|
m.logger.Debug("Unable to get deactivated automatic status updates from db", zap.Error(err))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue