From 137bb7fd2f4162ea68a81c8d782c6e628a5b27e3 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Thu, 18 Jun 2009 00:03:11 +0200 Subject: fixed disconnecting --- pyLoadGui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pyLoadGui.py') 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() -- cgit v1.2.3