summaryrefslogtreecommitdiffstats
path: root/module/network
diff options
context:
space:
mode:
authorGravatar Jeix <devnull@localhost> 2010-06-20 13:07:24 +0200
committerGravatar Jeix <devnull@localhost> 2010-06-20 13:07:24 +0200
commit29241018fe7338a88d01a0c37f0a3f9e45b8d6f3 (patch)
treea83d47660de94bb79cfaf2f0ac2c6ac618a5d061 /module/network
parentDebug = False is the better choice as default (diff)
downloadpyload-29241018fe7338a88d01a0c37f0a3f9e45b8d6f3.tar.xz
Package_finished event for scripts implemented
bugfix: closing socket for IRC connection (xdcc)
Diffstat (limited to 'module/network')
-rw-r--r--module/network/XdccRequest.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/network/XdccRequest.py b/module/network/XdccRequest.py
index 57fdced66..bf9965eba 100644
--- a/module/network/XdccRequest.py
+++ b/module/network/XdccRequest.py
@@ -25,6 +25,7 @@ import time
import socket
from select import select
import re
+from os import sep, rename, stat
from os.path import exists
import struct
@@ -181,6 +182,7 @@ class XdccRequest:
# kill IRC socket
sock.send("QUIT :byebye\r\n")
+ sock.close()
# connect to XDCC Bot
dcc = socket.socket()
@@ -225,6 +227,7 @@ class XdccRequest:
# acknowledge data by sending number of recceived bytes
dcc.send(struct.pack('!I', dcc_total))
########################
+
free_name = self.get_free_name(dcc_packname)
rename(dcc_packname + ".part", free_name)