Change from GNet to HCConn.
[cascardo/rnetproxy.git] / pop.c
diff --git a/pop.c b/pop.c
index 09af8a2..0477815 100644 (file)
--- a/pop.c
+++ b/pop.c
@@ -18,7 +18,6 @@
 **  
 */
 
-#include <gnet.h>
 #include <glib.h>
 #include <string.h>
 #include "nethook.h"
@@ -92,8 +91,7 @@ pop_read (net_hook_t *hook, gchar *buffer, size_t len)
             {
               g_message ("Denying access to user %s.", pop->user);
               pop_destroy (hook);
-              gnet_conn_disconnect (hook->conn);
-              hook->close (hook);
+              hc_conn_close (hook->conn);
               return;
             }
         }