diff --git a/_clang-format b/_clang-format index c80ab6c..798ab96 100644 --- a/_clang-format +++ b/_clang-format @@ -8,6 +8,7 @@ BinPackParameters: 'false' BreakBeforeBraces: Linux ColumnLimit: '80' DerivePointerAlignment: 'false' +IndentGotoLabels: false IndentWidth: '4' PointerAlignment: Right SortIncludes: 'false' diff --git a/src/event.c b/src/event.c index a44ed68..1edddac 100644 --- a/src/event.c +++ b/src/event.c @@ -110,6 +110,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, unsigned long timeout) xmpp_debug(ctx, "xmpp", "Send error occurred, disconnecting."); conn->error = ECONNABORTED; conn_disconnect(conn); + goto NEXT_ITEM; } } @@ -154,7 +155,7 @@ void xmpp_run_once(xmpp_ctx_t *ctx, unsigned long timeout) conn->error = ECONNABORTED; conn_disconnect(conn); } - +NEXT_ITEM: connitem = connitem->next; }