Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve error message when accessing packets during initialization #964
I ran into something today that I thought y’all might be interested in. I was working on some derived code, and the C&T server kept crashing during the config load with a less-than-enlightening “no _dump_data is defined for class Thread::Mutex” error. Turns out this was caused by inadvertently reading a packet value during Conversion#initialize, which renders the packet un-dumpable since it creates a Mutex. While it’s probably best practice to avoid doing this (e.g. trying to read an undefined packet), it still seems like unexpected behavior that could cause headaches for others too.