summaryrefslogtreecommitdiffstats
path: root/pyLoadGui.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-18 00:03:11 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2009-06-18 00:03:11 +0200
commit137bb7fd2f4162ea68a81c8d782c6e628a5b27e3 (patch)
treea5d311747509c5b1aef8764511f0b0081a57d4b9 /pyLoadGui.py
parentplugins can import captcha method, see #6 (diff)
downloadpyload-137bb7fd2f4162ea68a81c8d782c6e628a5b27e3.tar.xz
fixed disconnecting
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-xpyLoadGui.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyLoadGui.py b/pyLoadGui.py
index 422d5bd19..07480b5fb 100755
--- a/pyLoadGui.py
+++ b/pyLoadGui.py
@@ -193,7 +193,7 @@ class Pyload_Main_Gui(wx.Frame):
wx.MessageDialog(None, 'Cant connect to: %s:%s' % (socket_host.host.GetValue(), socket_host.port.GetValue()), 'Error', wx.OK | wx.ICON_ERROR).ShowModal()
def disconnect(self, event):
- self.thread.socket.shutdown(socket.SHUT_RDWR)
+ self.thread.socket.close_when_done()
self.SetStatusText('')
@@ -228,4 +228,4 @@ class Pyload_Main_Gui(wx.Frame):
app = wx.App()
Pyload_Main_Gui(None, -1)
-app.MainLoop() \ No newline at end of file
+app.MainLoop()