mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-01-19 19:26:25 +00:00
explain the buried reactor import, just in case
This commit is contained in:
parent
2c38b148bf
commit
97e0ad627b
@ -329,6 +329,8 @@ def foolscapEndpointForPortNumber(portnum):
|
||||
Foolscap-compatible endpoint object.
|
||||
"""
|
||||
if portnum is None:
|
||||
# Bury this reactor import here to minimize the chances of it having
|
||||
# the effect of installing the default reactor.
|
||||
from twisted.internet import reactor
|
||||
if IReactorSocket.providedBy(reactor):
|
||||
# On POSIX we can take this very safe approach of binding the
|
||||
|
Loading…
Reference in New Issue
Block a user