changeset 7324 | fb6bfe8e30c8 |
parent 7320 | e704706008d4 |
child 7336 | f821f7d727b7 |
--- a/project_files/frontlib/net/netconn.c Tue Jul 10 19:40:10 2012 +0200 +++ b/project_files/frontlib/net/netconn.c Wed Jul 11 01:40:35 2012 +0200 @@ -620,6 +620,11 @@ } flib_netmsg_destroy(netmsg); } + + if(!exit && !conn->destroyRequested && !flib_netbase_connected(net)) { + conn->netconnState = NETCONN_STATE_DISCONNECTED; + conn->onDisconnectedCb(conn->onDisconnectedCtx, NETCONN_DISCONNECT_CONNLOST, "Connection lost"); + } } void flib_netconn_tick(flib_netconn *conn) {