Skip to content

Commit a896317

Browse files
committed
fixed dereferenced null pointer
#1626
1 parent 5779a79 commit a896317

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

internal/topic/topiclistenerinternal/stream_listener.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -339,11 +339,6 @@ func (l *streamListener) onStopPartitionRequest(
339339
m *rawtopicreader.StopPartitionSessionRequest,
340340
) error {
341341
session, err := l.sessions.Get(m.PartitionSessionID)
342-
if !m.Graceful && session == nil {
343-
// stop partition may be received twice: graceful and force
344-
// the sdk we can forget about the session after graceful stop
345-
return nil
346-
}
347342
if err != nil {
348343
return err
349344
}

0 commit comments

Comments
 (0)