We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ec7328 commit 313b287Copy full SHA for 313b287
smpplib/client.py
@@ -83,9 +83,10 @@ def disconnect(self):
83
"""Disconnect from the SMSC"""
84
logger.info('Disconnecting...')
85
86
- self._socket.close()
+ if self._socket is not None:
87
+ self._socket.close()
88
+ self._socket = None
89
self.state = consts.SMPP_CLIENT_STATE_CLOSED
- self._socket = None
90
91
def _bind(self, command_name, **kwargs):
92
"""Send bind_transmitter command to the SMSC"""
0 commit comments