good morning!!!!

Skip to content
Snippets Groups Projects
Commit 13441865 authored by aforge's avatar aforge
Browse files

Make sure sess.inflightReqs is not nil before accessing it.

parent 3f5b019e
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,9 @@ func (h *Hub) run() {
select {
case t.reg <- join:
default:
join.sess.inflightReqs.Done()
if join.sess.inflightReqs != nil {
join.sess.inflightReqs.Done()
}
join.sess.queueOut(ErrServiceUnavailableReply(join.pkt, join.pkt.Timestamp))
log.Println("hub.join loop: topic's reg queue full", join.pkt.RcptTo, join.sess.sid, " - total queue len:", len(t.reg))
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment