Basic network disconnect handling

In theory even the chat-server connection could be left open... it would
be killed and reopened later... But not sure if leaving stuff in a dirty
state is desired. Also calling .disconnect on a disconnected client does
nothing anyway.

On 17/11/14 21:13, Thorbjørn Lindeijer wrote:
> In example/qml/main/MainWindow.qml:
> 
>> @@ -61,6 +62,17 @@ Image {
>>      }
>>  
>>      Connections {
>> +        target: gameClient
>> +        onDisconnected: {
>> +            if (state === "game") {
>> +                chatClient.disconnect();
>> +                accountClient.disconnect();
> 
> Do we actually need to disconnect from the account client when losing
> the connection to the game client? I mean in general it will happen
> somewhat at the same time anyway, but I'm just wondering.
> 
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/tales/tales-client/pull/16/files#r20461538>.
>