]> cgit.babelmonkeys.de Git - mpdbot.git/blobdiff - src/PEPThread.m
Minor cleanup
[mpdbot.git] / src / PEPThread.m
index e857ae368311a28b6473fa83dd3bba77adbb90bd..b6b9cb1b50b23e18c56136d05747d4655135e2ac 100644 (file)
@@ -47,8 +47,8 @@
                                       port: 6600];
                        return;
                } @catch (id e) {
-                       of_log(@"Connection failed, retrying in %" PRIi64
-                                       " seconds", pause);
+                       [of_stderr writeFormat: @"Connection failed, retrying"
+                               @" in %" PRIi64 @" seconds\n", pause];
                        [OFThread sleepForTimeInterval: pause];
                        if (pause < 120)
                                pause *= 2;
        }
 }
 
-- (OFMutableDictionary*)MPD_responseFromSocket: (OFTCPSocket*)sock
+- (OFMutableDictionary*)MPD_responseFromSocket: (OFTCPSocket*)sock_
 {
        OFString *answer;
        OFMutableDictionary *response = [OFMutableDictionary dictionary];
-       while ((answer = [sock readLine]) && ![answer hasPrefix: @"OK"]) {
+       while ((answer = [sock_ readLine]) && ![answer hasPrefix: @"OK"]) {
                size_t index;
                index = [answer indexOfFirstOccurrenceOfString: @":"];
                if (index == OF_INVALID_INDEX)