mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +01:00
main: remove incorrect usage of socket.shutdown, and raise socket timeout to something more reasonable
This commit is contained in:
parent
f8a7bc6033
commit
149921ac47
3
main.py
3
main.py
@ -52,7 +52,7 @@ class Irc():
|
||||
log.info("Connecting to network %r on %s:%s", self.name, ip, port)
|
||||
self.socket = socket.socket()
|
||||
self.socket.setblocking(0)
|
||||
self.socket.settimeout(60)
|
||||
self.socket.settimeout(180)
|
||||
self.socket.connect((ip, port))
|
||||
self.proto.connect(self)
|
||||
self.loaded = []
|
||||
@ -62,7 +62,6 @@ class Irc():
|
||||
|
||||
def disconnect(self):
|
||||
self.connected = False
|
||||
self.socket.shutdown()
|
||||
self.socket.close()
|
||||
|
||||
def run(self):
|
||||
|
Loading…
Reference in New Issue
Block a user