mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Fixed bug in DatagramHandler.send()
This commit is contained in:
parent
a12fa148d7
commit
fb154171c4
1 changed files with 2 additions and 0 deletions
|
@ -450,6 +450,8 @@ class DatagramHandler(SocketHandler):
|
||||||
when the network is busy - UDP does not guarantee delivery and
|
when the network is busy - UDP does not guarantee delivery and
|
||||||
can deliver packets out of sequence.
|
can deliver packets out of sequence.
|
||||||
"""
|
"""
|
||||||
|
if self.sock is None:
|
||||||
|
self.createSocket()
|
||||||
self.sock.sendto(s, (self.host, self.port))
|
self.sock.sendto(s, (self.host, self.port))
|
||||||
|
|
||||||
class SysLogHandler(logging.Handler):
|
class SysLogHandler(logging.Handler):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue