mirror of
https://github.com/3cky/mbusd.git
synced 2024-09-26 03:43:04 +02:00
Move queue_next_elem() outside of the switch
block (fix #52)
This commit is contained in:
parent
b2effb1db9
commit
c582e6f052
@ -857,7 +857,6 @@ conn_loop(void)
|
||||
conn_tty_start(&tty, curconn);
|
||||
}
|
||||
}
|
||||
curconn = queue_next_elem(&queue, curconn);
|
||||
break;
|
||||
case CONN_RESP:
|
||||
if (FD_ISSET(curconn->sd, &sdsetwr))
|
||||
@ -875,9 +874,9 @@ conn_loop(void)
|
||||
if (curconn->ctr == (MB_FRAME(curconn->buf, MB_LENGTH_L) + HDRSIZE))
|
||||
state_conn_set(curconn, CONN_HEADER);
|
||||
}
|
||||
curconn = queue_next_elem(&queue, curconn);
|
||||
break;
|
||||
} /* switch (curconn->state) */
|
||||
curconn = queue_next_elem(&queue, curconn);
|
||||
} /* while (len--) */
|
||||
} /* while (TRUE) */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user