Sfoglia il codice sorgente

Clear trigger before engaging in update (#130)

Update sequence_manager.py
justheuristic 2 anni fa
parent
commit
79a4308992
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/petals/client/routing/sequence_manager.py

+ 1 - 1
src/petals/client/routing/sequence_manager.py

@@ -279,8 +279,8 @@ class _SequenceManagerUpdateThread(threading.Thread):
                 break
 
             try:
-                update_manager()
                 self.trigger.clear()
+                update_manager()
             except Exception as e:
                 logger.exception(e)
             finally: