aboutsummaryrefslogtreecommitdiff
path: root/src/Listen.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-15 22:50:49 +0100
committerMax Kellermann <max@duempel.org>2013-01-15 22:56:06 +0100
commit0dd5f2915a9c01992c18f6c983c082199be7c771 (patch)
tree5885ceebca7673ebf3e3a2a63496fce9f90962a0 /src/Listen.cxx
parenta0ebd444ad52e00d23abca606819257fcb48889b (diff)
ServerSocket: use the SocketMonitor class
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r--src/Listen.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx
index 6b298769..7bc10dc1 100644
--- a/src/Listen.cxx
+++ b/src/Listen.cxx
@@ -92,13 +92,15 @@ listen_systemd_activation(GError **error_r)
bool
listen_global_init(GError **error_r)
{
+ assert(main_loop != nullptr);
+
int port = config_get_positive(CONF_PORT, DEFAULT_PORT);
const struct config_param *param =
config_get_next_param(CONF_BIND_TO_ADDRESS, NULL);
bool success;
GError *error = NULL;
- listen_socket = server_socket_new(listen_callback, NULL);
+ listen_socket = server_socket_new(*main_loop, listen_callback, NULL);
if (listen_systemd_activation(&error))
return true;