event/BufferedSocket: pass std::exception_ptr to OnSocketError()

This commit is contained in:
Max Kellermann
2016-11-02 10:38:05 +01:00
parent c8bb3c0b71
commit e2b7c30811
7 changed files with 13 additions and 25 deletions

View File

@@ -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();
}