Skip to content

Commit

Permalink
Remove malformed error event (#1104)
Browse files Browse the repository at this point in the history
Required:

Task/Issue URL: https://app.asana.com/0/414235014887631/1208683003138954/f
iOS PR: duckduckgo/iOS#3647
macOS PR: duckduckgo/macos-browser#3612
What kind of version bump will this require?: Major

Description:

This PR removes the malformed error event, as it was temporary.
  • Loading branch information
samsymons authored Nov 30, 2024
1 parent 837dfbf commit 1f1a9f9
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions Sources/NetworkProtection/PacketTunnelProvider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ open class PacketTunnelProvider: NEPacketTunnelProvider {
case rekeyAttempt(_ step: RekeyAttemptStep)
case failureRecoveryAttempt(_ step: FailureRecoveryStep)
case serverMigrationAttempt(_ step: ServerMigrationAttemptStep)
case malformedErrorDetected(_ error: Error)
}

public enum AttemptStep: CustomDebugStringConvertible {
Expand Down Expand Up @@ -705,7 +704,6 @@ open class PacketTunnelProvider: NEPacketTunnelProvider {
// Check that the error is valid and able to be re-thrown to the OS before shutting the tunnel down
if let wrappedError = wrapped(error: error) {
// Wait for the provider to complete its pixel request.
providerEvents.fire(.malformedErrorDetected(error))
try? await Task.sleep(interval: .seconds(2))
throw wrappedError
} else {
Expand Down Expand Up @@ -743,7 +741,6 @@ open class PacketTunnelProvider: NEPacketTunnelProvider {
// Check that the error is valid and able to be re-thrown to the OS before shutting the tunnel down
if let wrappedError = wrapped(error: error) {
// Wait for the provider to complete its pixel request.
providerEvents.fire(.malformedErrorDetected(error))
try? await Task.sleep(interval: .seconds(2))
throw wrappedError
} else {
Expand Down

0 comments on commit 1f1a9f9

Please sign in to comment.