Don't reconnect when closing connection manually
This commit is contained in:
parent
5d7edac1e8
commit
15fbc4b654
1 changed files with 1 additions and 0 deletions
|
@ -176,6 +176,7 @@ func (r *RPC) startReadingData(rc io.ReadCloser) {
|
||||||
func (r *RPC) CloseConnection() {
|
func (r *RPC) CloseConnection() {
|
||||||
if r.conn != nil {
|
if r.conn != nil {
|
||||||
r.client.Logger.Debug().Msg("Closing connection manually")
|
r.client.Logger.Debug().Msg("Closing connection manually")
|
||||||
|
r.listenID++
|
||||||
r.stopping = true
|
r.stopping = true
|
||||||
r.conn.Close()
|
r.conn.Close()
|
||||||
r.conn = nil
|
r.conn = nil
|
||||||
|
|
Loading…
Reference in a new issue