Skip to content

Commit

Permalink
close channel if not delete
Browse files Browse the repository at this point in the history
  • Loading branch information
absolute8511 committed May 16, 2017
1 parent 90c2ea3 commit 656a436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nsqd/topic.go
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,8 @@ func (t *Topic) CloseExistingChannel(channelName string, deleteData bool) error
// (so that we dont leave any messages around)
if deleteData {
channel.Delete()
} else {
channel.Close()
}

if numChannels == 0 && t.ephemeral == true {
Expand Down

0 comments on commit 656a436

Please sign in to comment.