|
@@ -516,7 +516,7 @@ circuit_about_to_close_connection(connection_t *conn)
|
|
*/
|
|
*/
|
|
switch (conn->type) {
|
|
switch (conn->type) {
|
|
case CONN_TYPE_OR: {
|
|
case CONN_TYPE_OR: {
|
|
- if (connection_state_is_open(conn)) {
|
|
|
|
|
|
+ if (!connection_state_is_open(conn)) {
|
|
/* Inform any pending (not attached) circs that they should
|
|
/* Inform any pending (not attached) circs that they should
|
|
* give up. */
|
|
* give up. */
|
|
circuit_n_conn_done(conn, 0);
|
|
circuit_n_conn_done(conn, 0);
|