mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 03:02:31 +00:00
fixes #24538
(cherry picked from commit 91d1933ea2)
This commit is contained in:
@@ -915,7 +915,7 @@ proc recvFrom*(socket: AsyncSocket, data: FutureVar[string], size: int,
|
||||
"Cannot `recvFrom` on a TCP socket. Use `recv` or `recvInto` instead")
|
||||
assert(not socket.closed, "Cannot `recvFrom` on a closed socket")
|
||||
assert(size == len(data.mget()),
|
||||
"`date` was not initialized correctly. `size` != `len(data.mget())`")
|
||||
"`data` was not initialized correctly. `size` != `len(data.mget())`")
|
||||
assert(46 == len(address.mget()),
|
||||
"`address` was not initialized correctly. 46 != `len(address.mget())`")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user