diff options
-rw-r--r-- | src/modes/thread_view/page_client.cc | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/modes/thread_view/page_client.cc b/src/modes/thread_view/page_client.cc index a151b58..993d32c 100644 --- a/src/modes/thread_view/page_client.cc +++ b/src/modes/thread_view/page_client.cc @@ -116,17 +116,16 @@ namespace Astroid { /* set up unix socket */ LOG (warn) << "pc: id: " << id; + socket_addr = ustring::compose ("%1/astroid.%2.%3.%4", + astroid->standard_paths ().socket_dir.c_str(), + getpid(), + id, + UstringUtils::random_alphanumeric (30)); refptr<Gio::UnixSocketAddress> addr; if(Gio::UnixSocketAddress::abstract_names_supported ()) { addr = Gio::UnixSocketAddress::create (socket_addr, Gio::UNIX_SOCKET_ADDRESS_ABSTRACT); } else { - socket_addr = ustring::compose ("%1/astroid.%2.%3.%4", - astroid->standard_paths ().socket_dir.c_str(), - getpid(), - id, - UstringUtils::random_alphanumeric (30)); - addr = Gio::UnixSocketAddress::create (socket_addr, Gio::UNIX_SOCKET_ADDRESS_PATH); } |