public override void run() { JabberInputHandler handler = new JabberInputHandler(packetQueue); try { handler.process(session); } catch(Exception ex) { try { // Most likely disconnected DisconnectGUIDelegate dgui = new DisconnectGUIDelegate(model.gui.disconnectGUI); model.gui.Invoke(dgui); } catch (Exception exc) { // Probably gui has already been destroyed Console.WriteLine(exc.StackTrace); } } }
public override void run() { JabberInputHandler handler = new JabberInputHandler(packetQueue); handler.process(session); }