We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6049b1c commit cc727c9Copy full SHA for cc727c9
docs/USAGE.md
@@ -81,8 +81,8 @@ p.start()
81
82
```python3
83
# imports
84
-from multiprocessing import Process
85
import multicast
+from multiprocessing import Process
86
87
# Multicast group address and port
88
MCAST_GRP = "224.0.0.1" # Replace with your multicast group address (use IPv4 dotted notation)
@@ -120,7 +120,7 @@ finally:
120
if p:
121
p.join() # if not already handled don't forget to join the process and other overhead
122
# hint: if you use a loop and need to know the exit code
123
- didWork = (p is not None and int(p.exitcode) <= int(0)) # e.g. check for success
+ didWork = (p is not None and p.exitcode <= 0) # e.g. check for success
124
125
```
126
0 commit comments