Session lock/unlock in IE 9 - Session is always locked

Hi,
in my 7.1.3 Vaadin application I have implemented a View with some custom componente with a periodical refresh like this:


Thread reload = new Thread() {
            @Override
            public void run() {
                while (true) {
                    try {
                    	sleep(5000);
                        if (isConnectorEnabled()) {
                            getSession().lock();
                            try {
                            	//do something to update datas
                            } finally {
                                getSession().unlock();
                            }
                        } else {
                            break;
                        }
                    } catch (InterruptedException e) {
                        e.printStackTrace();
                    }
                }
            }
        };
        reload.start();

In Firefox and Chrome all works fine but in IE 9 my session is always locked (I see everytime the loader animation) and all client request never processed.

Anyone help me?
Thanks in advance

I’m facing a similar problem, this has something to do with the fallback of atmoshere in case the browser doesn’t support websockets (this happens, for example, with FF4 as well).
Anyways, you really want to use UI.access() instead of session.lock, and maybe block on the future returned there.