romana / multi-ping

Python library to monitor one or many IP addresses via ICMP echo (ping) requests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

unclosed socket

shkabaturd opened this issue · comments

i got this error when i start using multi_ping inside threading.Timer

image

image

in linux the same.

I think this can help:

class MultiPing(object):
def del(self):

   self._sock.close()
   self._sock6.close()

Your patch is buggy, be advised. You forgot the "self".

I merged and commit a fix.