diff options
Diffstat (limited to 'src/client')
-rw-r--r-- | src/client/Client.hxx | 2 | ||||
-rw-r--r-- | src/client/ClientEvent.cxx | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/client/Client.hxx b/src/client/Client.hxx index 4de5ad8c6..f46a38155 100644 --- a/src/client/Client.hxx +++ b/src/client/Client.hxx @@ -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 */ diff --git a/src/client/ClientEvent.cxx b/src/client/ClientEvent.cxx index 064b542b9..2d90b90cf 100644 --- a/src/client/ClientEvent.cxx +++ b/src/client/ClientEvent.cxx @@ -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(); } |