Add removed code

This commit is contained in:
Joe Eacott 2020-04-30 11:41:42 -06:00 committed by Daniel Wozniak
parent a7b40e5947
commit 7d6e441ca9

View file

@ -1073,6 +1073,9 @@ class RemoteClient(Client):
"""
Reset the channel, in the event of an interruption
"""
# Close the previous channel
self.channel.close()
# Instantiate a new one
self.channel = salt.transport.client.ReqChannel.factory(self.opts)
return self.channel