Fix broken previews for me, pepper with comments on logic. Probably makes it fail for windows users again.
--- a/QTfrontend/net/tcpBase.cpp Wed Mar 14 21:46:07 2018 +0100
+++ b/QTfrontend/net/tcpBase.cpp Wed Mar 14 22:57:31 2018 +0100
@@ -228,8 +228,10 @@
{
Q_UNUSED(exitStatus);
- if(m_connected)
- ClientDisconnect();
+ if(!m_connected) { // yes, it is intended to be like this
+ ClientDisconnect(); // need to do cleanup in case no connection occured,
+ //if m_connected is true, it is done automatically in socket disconnect handler
+ }
// show error message if there was an error that was not an engine's
// fatal error - because that one already sent a info via IPC