TUN-8848: Don't treat connection shutdown as an error condition when RPC server is done
This commit is contained in:
parent
d8c7f1c1ec
commit
ac34f94d42
|
@ -51,7 +51,7 @@ func (s *SessionManagerServer) Serve(ctx context.Context, stream io.ReadWriteClo
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case <-rpcConn.Done():
|
case <-rpcConn.Done():
|
||||||
return rpcConn.Err()
|
return nil
|
||||||
case <-ctx.Done():
|
case <-ctx.Done():
|
||||||
return ctx.Err()
|
return ctx.Err()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue