feat(backend): fixed possible panic in ender
This commit is contained in:
parent
30ccc09685
commit
dd8050aaa2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue