diff options
author | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-03-30 08:54:19 +0300 |
---|---|---|
committer | JeffB42 <10328858+JeffB42@users.noreply.github.com> | 2021-03-30 08:54:19 +0300 |
commit | 2fad643c00efc35d0c8c086bac522974c6d3e547 (patch) | |
tree | 33659cfd342a4966d91f0ff4df9d6897ccf41760 | |
parent | 30ff9c3ea0b64031f25842ccf1133c11d8febe68 (diff) |
reverted call to Sleep()
-rwxr-xr-x | octoprintApis/OctoScreenSettingsRequest.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/octoprintApis/OctoScreenSettingsRequest.go b/octoprintApis/OctoScreenSettingsRequest.go index 52dac9f..0ca8974 100755 --- a/octoprintApis/OctoScreenSettingsRequest.go +++ b/octoprintApis/OctoScreenSettingsRequest.go @@ -3,7 +3,6 @@ package octoprintApis import ( "encoding/json" "fmt" - "time" "github.com/Z-Bolt/OctoScreen/octoprintApis/dataModels" ) @@ -17,12 +16,6 @@ type OctoScreenSettingsRequest struct { } func (this *OctoScreenSettingsRequest) Do(client *Client, uiState string) (*dataModels.OctoScreenSettingsResponse, error) { - // Pause for 2 seconds here. This is in response to the "OctoScreen 2.7.0 doesn't recognize that OctoScreen plugin 2.6.0 is installed" - // bug (see https://github.com/Z-Bolt/OctoScreen/issues/275). I was able to repro the bug sometimes, yet other times this worked fine. - // I examined the logs and they were exactly the same (up to the error, which was "HTTP/1.x transport connection broken: malformed MIME - // header line: Not found"). This might not be an issue after the state machine rewrite in 2.8. - time.Sleep(time.Second * 2) - target := fmt.Sprintf("%s?command=get_settings", PluginZBoltOctoScreenApiUri) bytes, err := client.doJsonRequest("GET", target, nil, ConnectionErrors) if err != nil { |