How to stop snapconnect instance after create it? I look through document and didn't find it.
The close API is stop_accepting_tcp() but I got errors when it is called in my program. The error information is:
self.bridge_instance.snap_instance.stop_accepting_ tcp(close_existing=True)
File "snapconnect\snap.py", line 911, in stop_accepting_tcp
File "snapconnect\snaptcp.py", line 708, in stop_listening
File "C:\Python27\Lib\asyncore.py", line 405, in close
self.socket.close()
AttributeError: 'NoneType' object has no attribute 'close'
What is wrong with stop_accepting_tcp and how to stop snapconnect instance? Thanks.
The close API is stop_accepting_tcp() but I got errors when it is called in my program. The error information is:
self.bridge_instance.snap_instance.stop_accepting_ tcp(close_existing=True)
File "snapconnect\snap.py", line 911, in stop_accepting_tcp
File "snapconnect\snaptcp.py", line 708, in stop_listening
File "C:\Python27\Lib\asyncore.py", line 405, in close
self.socket.close()
AttributeError: 'NoneType' object has no attribute 'close'
What is wrong with stop_accepting_tcp and how to stop snapconnect instance? Thanks.
Comment