Revision e0e01d37 ncclient/operations/session.py

b/ncclient/operations/session.py
24 24

  
25 25
    SPEC = { 'tag': 'close-session' }
26 26

  
27
    def _delivery_hook(self):
28
        self.session.close()
27
    def request(self):
28
        try:
29
            return self._request(CloseSession.SPEC)
30
        finally:
31
            self.session.close()
29 32

  
30 33

  
31 34
class KillSession(RPC):

Also available in: Unified diff