@@ -955,12 +955,13 @@ def sync_all(self, till=None):
955955
956956 def stop_periodic_fetching (self ):
957957 """Stop fetchers for feature flags and segments."""
958+ _LOGGER .debug ('Stopping periodic fetching' )
958959 if self ._split_tasks .split_task is not None :
959- _LOGGER .debug ('Stopping periodic fetching' )
960960 self ._split_tasks .split_task .stop ()
961961 if self ._split_tasks .segment_task is not None :
962962 self ._split_tasks .segment_task .stop ()
963963 if self ._split_tasks .internal_events_task :
964+ _LOGGER .debug ('Stopping internal events notification' )
964965 self ._split_tasks .internal_events_task .stop ()
965966
966967 def synchronize_splits (self ):
@@ -1031,12 +1032,15 @@ async def sync_all(self, till=None):
10311032
10321033 async def stop_periodic_fetching (self ):
10331034 """Stop fetchers for feature flags and segments."""
1035+ _LOGGER .debug ('Stopping periodic fetching' )
10341036 if self ._split_tasks .split_task is not None :
1035- _LOGGER .debug ('Stopping periodic fetching' )
10361037 await self ._split_tasks .split_task .stop ()
10371038 if self ._split_tasks .segment_task is not None :
1038- await self ._split_tasks .segment_task .stop ()
1039-
1039+ await self ._split_tasks .segment_task .stop ()
1040+ if self ._split_tasks .internal_events_task is not None :
1041+ _LOGGER .debug ('Stopping internal events notification' )
1042+ await self ._split_tasks .internal_events_task .stop ()
1043+
10401044 async def synchronize_splits (self ):
10411045 """Synchronize all feature flags."""
10421046 try :
0 commit comments