Merge pull request #519 from xpunch/master
missing nil check for grpc WaitGroup
This commit is contained in:
commit
a619321b64
@ -231,9 +231,13 @@ func (g *grpcServer) createSubHandler(sb *subscriber, opts server.Options) broke
|
|||||||
fn = opts.SubWrappers[i-1](fn)
|
fn = opts.SubWrappers[i-1](fn)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if g.wg != nil {
|
||||||
g.wg.Add(1)
|
g.wg.Add(1)
|
||||||
|
}
|
||||||
go func() {
|
go func() {
|
||||||
|
if g.wg != nil {
|
||||||
defer g.wg.Done()
|
defer g.wg.Done()
|
||||||
|
}
|
||||||
fn(ctx, &rpcMessage{
|
fn(ctx, &rpcMessage{
|
||||||
topic: sb.topic,
|
topic: sb.topic,
|
||||||
contentType: ct,
|
contentType: ct,
|
||||||
|
Loading…
Reference in New Issue
Block a user