feat(backend): fixed possible panic in ender

This commit is contained in:
Alexander 2023-10-30 17:40:41 +01:00
parent 30ccc09685
commit dd8050aaa2

View file

@ -173,7 +173,7 @@ func main() {
}
}
}
if sess.Platform == "ios" {
if sess != nil && sess.Platform == "ios" {
msg := &messages.IOSSessionEnd{Timestamp: timestamp}
if err := producer.Produce(cfg.TopicRawIOS, sessionID, msg.Encode()); err != nil {
log.Printf("can't send iOSSessionEnd to topic: %s; sessID: %d", err, sessionID)