equal
deleted
inserted
replaced
618 } else { |
618 } else { |
619 flib_log_w("Unknown server command: %s", cmd); |
619 flib_log_w("Unknown server command: %s", cmd); |
620 } |
620 } |
621 flib_netmsg_destroy(netmsg); |
621 flib_netmsg_destroy(netmsg); |
622 } |
622 } |
|
623 |
|
624 if(!exit && !conn->destroyRequested && !flib_netbase_connected(net)) { |
|
625 conn->netconnState = NETCONN_STATE_DISCONNECTED; |
|
626 conn->onDisconnectedCb(conn->onDisconnectedCtx, NETCONN_DISCONNECT_CONNLOST, "Connection lost"); |
|
627 } |
623 } |
628 } |
624 |
629 |
625 void flib_netconn_tick(flib_netconn *conn) { |
630 void flib_netconn_tick(flib_netconn *conn) { |
626 if(!log_badargs_if(conn==NULL) |
631 if(!log_badargs_if(conn==NULL) |
627 && !log_w_if(conn->running, "Call to flib_netconn_tick from a callback") |
632 && !log_w_if(conn->running, "Call to flib_netconn_tick from a callback") |