working client spawn

This commit is contained in:
NikVolf
2016-04-12 11:34:56 +03:00
parent cb1096d1e1
commit 806f5b9064
4 changed files with 51 additions and 4 deletions

View File

@@ -54,7 +54,7 @@ pub fn init_client<S>(socket_addr: &str) -> Result<GuardedSocket<S>, SocketError
SocketError::DuplexLink
}));
let endpoint = try!(socket.bind(socket_addr).map_err(|e| {
let endpoint = try!(socket.connect(socket_addr).map_err(|e| {
warn!(target: "ipc", "Failed to bind socket to address '{}': {:?}", socket_addr, e);
SocketError::DuplexLink
}));