- don't call InitOrder when not calling legacy handler.

This commit is contained in:
gazebo
2018-07-23 22:28:52 +08:00
parent acfe64c200
commit e23223ed32

View File

@@ -27,7 +27,9 @@ func main() {
globals.SugarLogger.Errorf("RefreshElmToken failed with error:%s", err)
return
}
controller.InitOrder()
if globals.CallLegacyMsgHandler {
controller.InitOrder()
}
}
bzcon.LoadPendingOrders()