From 032d928dba7d9ea721a97e889913a04040fe31ca Mon Sep 17 00:00:00 2001
From: librelois <elois@ifee.fr>
Date: Wed, 29 Nov 2017 15:45:03 +0100
Subject: [PATCH] [fix] ws2p step incrementation

---
 app/modules/ws2p/lib/WS2PCluster.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/modules/ws2p/lib/WS2PCluster.ts b/app/modules/ws2p/lib/WS2PCluster.ts
index 8c4bc952d..decebbf7f 100644
--- a/app/modules/ws2p/lib/WS2PCluster.ts
+++ b/app/modules/ws2p/lib/WS2PCluster.ts
@@ -533,7 +533,7 @@ export class WS2PCluster {
 
   private incrementHeadsStep(heads:WS2PHead[]) {
     for (let head of heads) {
-      if (head.step) {
+      if (head.step !== undefined) {
         head.step++
       }
     }
-- 
GitLab