Przeglądaj źródła

GDT test server: stop server on dealloc only if running (#7253)

Maksym Malyhin 5 lat temu
rodzic
commit
953dec1aae

+ 3 - 1
GoogleDataTransport/GDTCCTTests/Unit/TestServer/GDTCCTTestServer.m

@@ -49,7 +49,9 @@
 }
 
 - (void)dealloc {
-  [_server stop];
+  if (_server.isRunning) {
+    [_server stop];
+  }
 }
 
 - (void)start {