RealWebSocket$1.smali 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. .class Lokhttp3/internal/ws/RealWebSocket$1;
  2. .super Ljava/lang/Object;
  3. .source ""
  4. # interfaces
  5. .implements Ljava/lang/Runnable;
  6. # annotations
  7. .annotation system Ldalvik/annotation/EnclosingMethod;
  8. value = Lokhttp3/internal/ws/RealWebSocket;-><init>(Lokhttp3/Request;Lokhttp3/WebSocketListener;Ljava/util/Random;)V
  9. .end annotation
  10. .annotation system Ldalvik/annotation/InnerClass;
  11. accessFlags = 0x0
  12. name = null
  13. .end annotation
  14. # instance fields
  15. .field final synthetic this$0:Lokhttp3/internal/ws/RealWebSocket;
  16. # direct methods
  17. .method constructor <init>(Lokhttp3/internal/ws/RealWebSocket;)V
  18. .locals 0
  19. iput-object p1, p0, Lokhttp3/internal/ws/RealWebSocket$1;->this$0:Lokhttp3/internal/ws/RealWebSocket;
  20. invoke-direct {p0}, Ljava/lang/Object;-><init>()V
  21. return-void
  22. .end method
  23. # virtual methods
  24. .method public run()V
  25. .locals 3
  26. :goto_0
  27. :try_start_0
  28. iget-object v0, p0, Lokhttp3/internal/ws/RealWebSocket$1;->this$0:Lokhttp3/internal/ws/RealWebSocket;
  29. invoke-virtual {v0}, Lokhttp3/internal/ws/RealWebSocket;->writeOneFrame()Z
  30. move-result v0
  31. :try_end_0
  32. .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
  33. if-eqz v0, :cond_0
  34. goto :goto_0
  35. :catch_0
  36. move-exception v0
  37. iget-object v1, p0, Lokhttp3/internal/ws/RealWebSocket$1;->this$0:Lokhttp3/internal/ws/RealWebSocket;
  38. const/4 v2, 0x0
  39. invoke-virtual {v1, v0, v2}, Lokhttp3/internal/ws/RealWebSocket;->failWebSocket(Ljava/lang/Exception;Lokhttp3/Response;)V
  40. :cond_0
  41. return-void
  42. .end method