aboutsummaryrefslogtreecommitdiffstats
path: root/src/ClientEvent.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ClientEvent.cxx')
-rw-r--r--src/ClientEvent.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ClientEvent.cxx b/src/ClientEvent.cxx
index fe0f079b6..90b4a7499 100644
--- a/src/ClientEvent.cxx
+++ b/src/ClientEvent.cxx
@@ -19,14 +19,14 @@
#include "config.h"
#include "ClientInternal.hxx"
+#include "util/Error.hxx"
#include <glib.h>
void
-Client::OnSocketError(GError *error)
+Client::OnSocketError(Error &&error)
{
- g_warning("error on client %d: %s", num, error->message);
- g_error_free(error);
+ g_warning("error on client %d: %s", num, error.GetMessage());
SetExpired();
}