Skip to content

Commit 5abb8da

Browse files
committed
fix: update version to 0.4.9 and improve error handling in TcpListener
1 parent ae4f3a6 commit 5abb8da

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rsipstack"
3-
version = "0.4.8"
3+
version = "0.4.9"
44
edition = "2021"
55
description = "SIP Stack Rust library for building SIP applications"
66
license = "MIT"

src/transport/tcp_listener.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ impl TcpListenerConnection {
3838
let listener = TcpListener::bind(self.inner.local_addr.get_socketaddr()?).await?;
3939
let listener_local_addr = SipAddr {
4040
r#type: Some(rsip::transport::Transport::Tcp),
41-
addr: listener.local_addr().unwrap().into(),
41+
addr: listener.local_addr()?.into(),
4242
};
4343
tokio::spawn(async move {
4444
loop {

0 commit comments

Comments
 (0)