mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 02:45:22 +00:00
CPP generator test, catching exceptions by ref instead.
This commit is contained in:
parent
3f0d444791
commit
29ecfaba53
@ -98,7 +98,7 @@ Event EventLog::waitForEvent(int64_t timeout) {
|
||||
while (events_.empty()) {
|
||||
monitor_.wait(timeout);
|
||||
}
|
||||
} catch (TimedOutException ex) {
|
||||
} catch (const TimedOutException &) {
|
||||
return Event(ET_LOG_END, 0, 0, "");
|
||||
}
|
||||
|
||||
@ -119,7 +119,7 @@ Event EventLog::waitForConnEvent(uint32_t connId, int64_t timeout) {
|
||||
while (it == events_.end()) {
|
||||
monitor_.wait(timeout);
|
||||
}
|
||||
} catch (TimedOutException ex) {
|
||||
} catch (const TimedOutException &) {
|
||||
return Event(ET_LOG_END, 0, 0, "");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user