diff options
Diffstat (limited to 'pyLoadGui.py')
-rwxr-xr-x | pyLoadGui.py | 4 |
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() |