Capture all protocol tokens up front in debug mode

master
Thor 4 years ago
parent 04996e1196
commit 70163c1cce
  1. 2
      src/protocol/protocol.cpp

@ -35,7 +35,7 @@ namespace protocol {
}
void protocol_t::absorb(const std::string& input) {
auto tokens = token::decompose(input, max_pattern_length);
auto tokens = token::decompose(input, debug ? -1 : max_pattern_length);
auto pattern = token::pattern_t(tokens, false);
debug && cerr << "Received pattern " << pattern << endl;

Loading…
Cancel
Save