<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -769,12 +769,14 @@ nil] ];
 				BGLastFmScrobbleResponse *scrobbleResponse = [theScrobbler performScrobbleWithSongs:allRecentTracks andSessionKey:theSessionKey toURL:[NSURL URLWithString:thePostAddress]];
 
 				if (!scrobbleResponse.wasSuccessful) {
-					if (scrobbleResponse.responseType==2) {
+					if (scrobbleResponse.responseType==SCROBBLE_RESPONSE_BADAUTH) {
 						// Need to rehandshake
-					} else if (scrobbleResponse.responseType==3) {
+						[authManager fetchNewSubmissionSessionKeyUsingWebServiceSessionKey];
+						scrobbleAttempts = 2;
+					} else if (scrobbleResponse.responseType==SCROBBLE_RESPONSE_FAILED) {
 						[[GrowlHub sharedManager] postGrowlNotificationWithName:SP_Growl_FailedScrobbling andTitle:@&quot;Tracks could not be scrobbled&quot; andDescription:[NSString stringWithFormat:@&quot;Server said \&quot;%@\&quot;&quot;,[scrobbleResponse failureReason]] andImage:nil andIdentifier:SP_Growl_StartedScrobbling];
 						[prefController addHistoryWithSuccess:NO andDate:[NSDate date] andDescription:[NSString stringWithFormat:@&quot;Scrobble failed: &quot;,[scrobbleResponse failureReason]]];
-					} else if (scrobbleResponse.responseType==0 &amp;&amp; scrobbleAttempts==0) {
+					} else if (scrobbleResponse.responseType==SCROBBLE_RESPONSE_UNKNOWN &amp;&amp; scrobbleAttempts==0) {
 						// Because the scrobble post URL is stored in the user defaults (and handshake is not updated on launch), there is a
 						// chance that the stored URL (IP address) may no longer point to Last.fm. In this case, we re-handshake.
 						[authManager fetchNewSubmissionSessionKeyUsingWebServiceSessionKey];</diff>
      <filename>AppController.m</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,11 @@
 
 #import &lt;Cocoa/Cocoa.h&gt;
 
+#define SCROBBLE_RESPONSE_UNKNOWN	0
+#define SCROBBLE_RESPONSE_OK		1
+#define SCROBBLE_RESPONSE_BADAUTH	2
+#define SCROBBLE_RESPONSE_FAILED	3
+
 @interface BGLastFmScrobbleResponse : NSObject {
 
 int responseType;</diff>
      <filename>BGLastFmScrobbleResponse.h</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>99b955a8562ed9d7ec13d2897ea010064a6f7eb3</id>
    </parent>
  </parents>
  <author>
    <name>Ben Gummer</name>
    <email>bengummer@gmail.com</email>
  </author>
  <url>http://github.com/scrobblepod/scrobblepod/commit/bb6ff67d4f3591357ee56052d9e9483df38bbf2e</url>
  <id>bb6ff67d4f3591357ee56052d9e9483df38bbf2e</id>
  <committed-date>2008-11-25T23:06:55-08:00</committed-date>
  <authored-date>2008-11-25T23:06:55-08:00</authored-date>
  <message>Re-handshake if BADAUTH is returned when scrobbling</message>
  <tree>15910beb023ec403131def0a16150dbd1f8f98cd</tree>
  <committer>
    <name>Ben Gummer</name>
    <email>bengummer@gmail.com</email>
  </committer>
</commit>
