Index: runtime/bin/platform_win.cc |
diff --git a/runtime/bin/platform_win.cc b/runtime/bin/platform_win.cc |
index b6ec1f28e12c22022c895cf2cd2f723ade0a0ee1..a71a455b289031051d2f92a4b1106be2a50e7dcb 100644 |
--- a/runtime/bin/platform_win.cc |
+++ b/runtime/bin/platform_win.cc |
@@ -28,12 +28,7 @@ const char* Platform::OperatingSystem() { |
bool Platform::LocalHostname(char *buffer, intptr_t buffer_length) { |
- static bool socket_initialized = false; |
- if (!socket_initialized) { |
- // Initialize Socket for gethostname. |
- if (!Socket::Initialize()) return false; |
- socket_initialized = true; |
- } |
+ if (!Socket::Initialize()) return false; |
return gethostname(buffer, buffer_length) == 0; |
} |