event/BufferedSocket: pass std::exception_ptr to OnSocketError()
This commit is contained in:
@@ -200,7 +200,7 @@ public:
|
||||
private:
|
||||
/* virtual methods from class BufferedSocket */
|
||||
virtual InputResult OnSocketInput(void *data, size_t length) override;
|
||||
virtual void OnSocketError(Error &&error) override;
|
||||
void OnSocketError(std::exception_ptr ep) override;
|
||||
virtual void OnSocketClosed() override;
|
||||
|
||||
/* virtual methods from class TimeoutMonitor */
|
||||
|
@@ -22,9 +22,9 @@
|
||||
#include "Log.hxx"
|
||||
|
||||
void
|
||||
Client::OnSocketError(Error &&error)
|
||||
Client::OnSocketError(std::exception_ptr ep)
|
||||
{
|
||||
FormatError(error, "error on client %d", num);
|
||||
FormatError(ep, "error on client %d", num);
|
||||
|
||||
SetExpired();
|
||||
}
|
||||
|
Reference in New Issue
Block a user