Skip to content

Commit 953dec1

Browse files
GDT test server: stop server on dealloc only if running (#7253)
1 parent 55f27b5 commit 953dec1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

GoogleDataTransport/GDTCCTTests/Unit/TestServer/GDTCCTTestServer.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ - (instancetype)init {
4949
}
5050

5151
- (void)dealloc {
52-
[_server stop];
52+
if (_server.isRunning) {
53+
[_server stop];
54+
}
5355
}
5456

5557
- (void)start {

0 commit comments

Comments
 (0)