public void update() {
		while (!m_shell.isDisposed()) {
			if (!m_display.readAndDispatch()) {
				m_display.sleep();
			}

			for (int i = 0; i < m_clients.size(); ++i) {
				if (!m_shell.isDisposed())
					clientLogic(m_clients.get(i));
			}

			if(!m_shell.isDisposed())
				serverLogic(m_server);
		}
		m_display.dispose();

	}