Test Fix panic on disconnect
This commit is contained in:
@@ -186,7 +186,7 @@ namespace ColumnLynx::Utils {
|
||||
|
||||
// Panic the main thread and instantly halt execution. This produces a stack trace dump. Do not use by itself, throw an error instead.
|
||||
static void panic(const std::string& reason) {
|
||||
std::cerr << "\n***\033[31m MAIN THREAD PANIC! \033[0m***\n";
|
||||
std::cerr << "\n***\033[31m MASTER THREAD PANIC! \033[0m***\n";
|
||||
std::cerr << "Reason: " << reason << "\n";
|
||||
std::cerr << "Dumping panic trace...\n";
|
||||
|
||||
|
||||
@@ -76,5 +76,6 @@ namespace ColumnLynx::Net::TCP {
|
||||
std::chrono::steady_clock::time_point mLastHeartbeatReceived;
|
||||
std::chrono::steady_clock::time_point mLastHeartbeatSent;
|
||||
int mMissedHeartbeats = 0;
|
||||
std::string mRemoteIP; // Cached remote IP to avoid calling remote_endpoint() on closed sockets
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user