Fixed force poll on DCI with custom schedule Fixes #1293
[public/netxms.git] / src / server / core / session.cpp
index dce6c0e..f5a4ea0 100644 (file)
@@ -3815,7 +3815,7 @@ void ClientSession::forceDCIPoll(NXCPMessage *request)
             DCObject *dci = ((Template *)object)->getDCObjectById(dwItemId);
                                if (dci != NULL)
                                {
-               dci->setLastPollTime(0);
+                                  dci->setForcePoll(true);
                                        msg.setField(VID_RCC, RCC_SUCCESS);
                                        debugPrintf(4, _T("ForceDCIPoll: DCI %d at node %d"), dwItemId, object->getId());
                                }