diff options
author | Max Kellermann <max@duempel.org> | 2013-01-15 22:50:49 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-01-15 22:56:06 +0100 |
commit | 0dd5f2915a9c01992c18f6c983c082199be7c771 (patch) | |
tree | 5885ceebca7673ebf3e3a2a63496fce9f90962a0 /src/Listen.cxx | |
parent | a0ebd444ad52e00d23abca606819257fcb48889b (diff) |
ServerSocket: use the SocketMonitor class
Diffstat (limited to 'src/Listen.cxx')
-rw-r--r-- | src/Listen.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Listen.cxx b/src/Listen.cxx index 6b298769a..7bc10dc18 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; |