OAuth: Fix crash when closing the browser while identifying
authorOlivier Goffart <ogoffart@woboq.com>
Mon, 25 Sep 2017 14:44:33 +0000 (16:44 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:37 +0000 (22:01 +0200)
commit79c775bcd819eb84e08bfd3260b8bcc2b2c50878
tree0d866eced87de53b9d58d79481c67b10d5433581
parenta3b1597d173208647bfb37166e7be0d5ed7bd74c
OAuth: Fix crash when closing the browser while identifying

To reproduce, log in and click "authorize" on the browser, then close
the browser before the client has replied, (but after redirected to localhost,
i.e. when the client is asking the server for the token)

The problem is that socket can be destroyed so we don't need to answer on a
destroyed socket.
src/gui/creds/oauth.cpp