unix-systems support
This commit is contained in:
parent
bb2f8ccaa6
commit
9bf2cdac42
1 changed files with 3 additions and 3 deletions
|
|
@ -39,9 +39,9 @@ impl DiscordClient {
|
|||
|
||||
match UnixStream::connect(&path) {
|
||||
Ok(socket) => {
|
||||
self.socket.set_nonblocking(true)?;
|
||||
self.socket.set_write_timeout(Some(time::Duration::from_secs(30)))?;
|
||||
self.socket.set_read_timeout(Some(time::Duration::from_secs(30)))?;
|
||||
// self.socket.set_nonblocking(true)?;
|
||||
// self.socket.set_write_timeout(Some(time::Duration::from_secs(30)))?;
|
||||
// self.socket.set_read_timeout(Some(time::Duration::from_secs(30)))?;
|
||||
self.socket = Some(socket);
|
||||
self.handshake().expect("Could not handshake.");
|
||||
self.is_connected = true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue