File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ async def start(self):
113
113
self .task = asyncio .create_task (self .run (), name = self .name )
114
114
115
115
async def join (self , timeout : int = 0 ):
116
- await asyncio .wait ([self .task ], timeout = timeout )
116
+ if self .task is not None :
117
+ await asyncio .wait ([self .task ], timeout = timeout )
117
118
118
119
def is_alive (self ):
119
120
return not self .stopped
Original file line number Diff line number Diff line change @@ -113,7 +113,8 @@ def start(self):
113
113
self .task = asyncio .create_task (self .run (), name = self .name )
114
114
115
115
def join (self , timeout : int = 0 ):
116
- asyncio .wait ([self .task ], timeout = timeout )
116
+ if self .task is not None :
117
+ asyncio .wait ([self .task ], timeout = timeout )
117
118
118
119
def is_alive (self ):
119
120
return not self .stopped
You can’t perform that action at this time.
0 commit comments