diff options
author | Roger Dingledine <arma@torproject.org> | 2004-10-31 20:28:41 +0000 |
---|---|---|
committer | Roger Dingledine <arma@torproject.org> | 2004-10-31 20:28:41 +0000 |
commit | 984ffec105efe836c63772a6c30ced8fc03886d8 (patch) | |
tree | 33efb72b475ce9971041651d8464d57af47926c0 /src/or/command.c | |
parent | ae7495dd55e0e3346e1e18eefbe6aa95dc6fdf33 (diff) | |
download | tor-984ffec105efe836c63772a6c30ced8fc03886d8.tar.gz tor-984ffec105efe836c63772a6c30ced8fc03886d8.zip |
implement first piece of hibernation
still need to track bandwidth, and make decisions based on bandwidth
svn:r2630
Diffstat (limited to 'src/or/command.c')
-rw-r--r-- | src/or/command.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/or/command.c b/src/or/command.c index f80dd6fcea..8cd1ca91fe 100644 --- a/src/or/command.c +++ b/src/or/command.c @@ -16,7 +16,6 @@ #include "or.h" extern or_options_t options; /* command-line and config-file options */ -extern int shutting_down; /* whether we should refuse create cells */ /** Keep statistics about how many of each type of cell we've received. */ unsigned long stats_n_padding_cells_processed = 0; @@ -127,7 +126,7 @@ void command_process_cell(cell_t *cell, connection_t *conn) { static void command_process_create_cell(cell_t *cell, connection_t *conn) { circuit_t *circ; - if(shutting_down) { + if(we_are_hibernating()) { log_fn(LOG_INFO,"Received create cell but we're shutting down. Sending back destroy."); connection_send_destroy(cell->circ_id, conn); return; |