Permalink
Browse files

Connection::recv: Rethrow the original exception instead of a copy

Found by cppcheck.

Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information...
1 parent 5f807df commit 5365d6b21dfa5398009f83527bc9b35419f5736f @andersk andersk committed with keithw Feb 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/network/network.cc
@@ -397,7 +397,7 @@ string Connection::recv( void )
assert( !islast );
continue;
} else {
- throw e;
+ throw;
}
}

0 comments on commit 5365d6b

Please sign in to comment.