Skip to content

Commit

Permalink
FIX: Archiver Plugin timeout fix
Browse files Browse the repository at this point in the history
  • Loading branch information
zdomke committed Aug 29, 2024
1 parent 8ed5865 commit eea44aa
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pydm/data_plugins/archiver_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,12 @@ def fetch_data(self, from_date: float, to_date: float, processing_command: Optio
# will be delivered to the data_request_finished method below via the "finished" signal
self.connection_state_signal.emit(False)
reply = self.network_manager.get(request)
QTimer.singleShot(7500, reply.abort)

def timeout():
if isinstance(reply, QNetworkReply):
reply.abort()

QTimer.singleShot(7500, timeout)

@Slot(QNetworkReply)
def data_request_finished(self, reply: QNetworkReply) -> None:
Expand Down

0 comments on commit eea44aa

Please sign in to comment.