handled secure socket exception #4313

This commit is contained in:
XinyuHou 2015-01-29 16:16:45 +00:00
parent 767802f111
commit ad230d46e6
1 changed files with 5 additions and 0 deletions

View File

@ -18,6 +18,7 @@
#include "mt/Thread.h"
#include "net/XSocket.h"
#include "mt/XMT.h"
#include "mt/XThread.h"
#include "arch/Arch.h"
@ -158,6 +159,10 @@ Thread::threadFunc(void* vjob)
LOG((CLOG_DEBUG1 "thread 0x%08x exit", id));
}
catch (XSocket& e) {
// client called cancel()
LOG((CLOG_DEBUG "%s", e.what()));
}
catch (XThreadCancel&) {
// client called cancel()
LOG((CLOG_DEBUG1 "caught cancel on thread 0x%08x", id));